{$CLEO .cs}
Alloc($cocaBlip, 832)
Alloc($poppyStart, 864)
Alloc($isaacSpawned, 243)
Alloc($growhousePrompt, 235)
Alloc($hillPlantDone3, 221)
Alloc($beachCrowdSpawned, 373)
Alloc($farmWorkerMenu, 755)
Alloc($dbSaveFarmAkSeeds, 918)
Alloc($slingCustomerY, 939)
Alloc($slingCustomerActive, 360)
Alloc($dbSaveFirstSaleTextShown, 871)
Alloc($dbSaveCocaineGrams, 892)
Alloc($hillPrompt3, 225)
Alloc($dbSaveCocaineBreakthroughDone, 928)
Alloc($vagosEnemy, 964)
Alloc($supplier, 948)
Alloc($beachPed3, 993)
Alloc($mission8Unlocked, 745)
Alloc($farmCocaSeeds, 763)
Alloc($farmWorkerPrompt, 754)
Alloc($tyrellCrewSpawned, 571)
Alloc($mysterySeeds, 796)
Alloc($growhouseTyrellCallDone, 236)
Alloc($hillPlantDone1, 219)
Alloc($mission5CallDone, 242)
Alloc($nightCustomerModel, 564)
Alloc($farmCocaAutoStarted, 766)
Alloc($dbSaveFarmHarvestReady, 921)
Alloc($farmGuard2, 959)
Alloc($beachPed2, 992)
Alloc($chemistMarker, 387)
Alloc($akFirstSaleCallShown, 743)
Alloc($morganMenu, 770)
Alloc($mission4AkHarvested, 217)
Alloc($nightCustomerBlip, 529)
Alloc($slingCustomerMenu, 361)
Alloc($farmPatriotSpawned, 784)
Alloc($cocaStart, 830)
Alloc($dbSaveAkWeedGrams, 878)
Alloc($slingCustomerBlip, 363)
Alloc($dbSaveHeroinGrams, 882)
Alloc($dbSaveMission2Ready, 893)
Alloc($dbSaveSlingingUnlocked, 900)
Alloc($slingCustomerX, 938)
Alloc($nightCustomerA, 990)
Alloc($poppyPlanted, 860)
Alloc($supplierAkTalkUnlocked, 739)
Alloc($smuggleStage, 779)
Alloc($nightNextSpawn, 531)
Alloc($dbSaveMoney, 929)
Alloc($beachPed4, 995)
Alloc($myronPhoneComplete, 838)
Alloc($nightCustomerPrompt, 523)
Alloc($farmDrugBoxesSpawned, 785)
Alloc($slingDealsSinceHeat, 370)
Alloc($mission3Unlocked, 211)
Alloc($mission4Started, 216)
Alloc($dbSaveSlingDeals, 902)
Alloc($mission2EnemyCleaned, 931)
Alloc($smugglePrompt, 777)
Alloc($growhouseMarker, 232)
Alloc($dbSaveMysterySeeds, 889)
Alloc($slingSpawnIndex, 368)
Alloc($nightlifeActive, 519)
Alloc($heroinGrams, 378)
Alloc($ecstasyDealerDeals, 401)
Alloc($hillPrompt1, 223)
Alloc($mayaObjectiveStarted, 511)
Alloc($workerAkActive, 732)
Alloc($chemistPrompt, 384)
Alloc($cocaStage, 828)
Alloc($cocaineBreakthroughDone, 833)
Alloc($dbSaveNightlifeRep, 909)
Alloc($slingCustomerModel, 568)
Alloc($dbSaveWorkerHarvestGrams, 914)
Alloc($mexicanPrompt, 791)
Alloc($tyrell, 955)
Alloc($hillPlant3, 988)
Alloc($cocaGrowTicks, 831)
Alloc($myronPhoneUnlocked, 837)
Alloc($poppyPrompt, 863)
Alloc($dbSaveChemistUnlocked, 903)
Alloc($farmWorker1, 961)
Alloc($mission4Complete, 218)
Alloc($dbSaveMayaUnlocked, 907)
Alloc($farmOwned, 751)
Alloc($cocaPlanted, 826)
Alloc($plant2X, 935)
Alloc($dbSaveTotalGramsSold, 872)
Alloc($dbSaveEmpirePhaseUnlocked, 926)
Alloc($slingThanks, 367)
Alloc($ecstasyDealerMarker, 400)
Alloc($slingNextSpawn, 366)
Alloc($ecstasyPills, 374)
Alloc($growhouseSecuritySpawned, 835)
Alloc($dbSaveFarmPoppySeeds, 919)
Alloc($tyrellMenu, 573)
Alloc($workerAkReady, 734)
Alloc($farmGuardsSpawned, 748)
Alloc($labPack1, 982)
Alloc($hillPlant4, 989)
Alloc($cocaLeaves, 822)
Alloc($weedPlant1, 966)
Alloc($ecstasyDealerMenu, 397)
Alloc($dbSaveMission5CallDone, 898)
Alloc($hillGuard2, 969)
Alloc($palominoContactMarker, 237)
Alloc($farmMarker, 749)
Alloc($drugHeat, 202)
Alloc($chemistDiscovered, 382)
Alloc($slingDeals, 369)
Alloc($nightlifeSlingingUnlocked, 517)
Alloc($morganProcessDeals, 771)
Alloc($morganLsdReady, 772)
Alloc($plant1X, 932)
Alloc($farmAkPlant, 978)
Alloc($farmAkPlant3, 1003)
Alloc($cocaSeeds, 797)
Alloc($regularHarvestedGrams, 738)
Alloc($dbSaveMission2Complete, 894)
Alloc($planted2, 846)
Alloc($akWeedGrams, 204)
Alloc($chemistSpawned, 381)
Alloc($mission9Started, 565)
Alloc($farmCrewSpawned, 753)
Alloc($dbSaveMissionStage, 870)
Alloc($mexicanContact, 1008)
Alloc($farmCocaPlant4, 1007)
Alloc($maya, 953)
Alloc($slingCustomerPrompt, 362)
Alloc($ecstasyDealerSpawned, 395)
Alloc($poppyY, 943)
Alloc($dbSaveAkSeedPacks, 877)
Alloc($hillGrowUnlocked, 741)
Alloc($dbSaveMission3Ready, 895)
Alloc($dbSaveDrugHeat, 876)
Alloc($cocaX, 945)
Alloc($mission2Started, 206)
Alloc($isaacMarker, 245)
Alloc($slingSalePrice, 372)
Alloc($farmOpiumReady, 762)
Alloc($mission7Started, 379)
Alloc($dbSaveCurrentMoney, 930)
Alloc($plant2Y, 936)
Alloc($farmWorker2, 962)
Alloc($empireSupplierCallDone, 787)
Alloc($planted1, 845)
Alloc($mission2Unlocked, 205)
Alloc($farmPoppyPlant, 973)
Alloc($rewardRoll, 735)
Alloc($dbSaveSeedPacks, 868)
Alloc($farmDrugBox2, 998)
Alloc($growhouseSecurityGuard, 984)
Alloc($mexicanContactActorSpawned, 789)
Alloc($nightCustomerMarker, 530)
Alloc($plantBlip2, 859)
Alloc($dbSaveMaxPlants, 873)
Alloc($slingCustomerZ, 941)
Alloc($mayaIntroSpawned, 509)
Alloc($hillGuard1, 968)
Alloc($farmPoppyPlant4, 977)
Alloc($morganFarmMoved, 768)
Alloc($myronMarker, 843)
Alloc($farmDrugBox3, 999)
Alloc($lsdTabs, 405)
Alloc($mayaUnlocked, 508)
Alloc($growhouseOwned, 234)
Alloc($slingCustomerMarker, 364)
Alloc($mayaMarker, 515)
Alloc($poppySeeds, 375)
Alloc($smuggleMarker, 775)
Alloc($mission8Complete, 747)
Alloc($myronSupplierCallDone, 844)
Alloc($hillGuardsSpawned, 231)
Alloc($dbSaveEcstasyDealerStage, 906)
Alloc($harvestPrompt1, 854)
Alloc($cocaPlant, 1009)
Alloc($mexicanBlip, 793)
Alloc($farmPoppyPlant2, 974)
Alloc($workerHarvestGrams, 731)
Alloc($ecstasyDealer, 979)
Alloc($hillPlantDone2, 220)
Alloc($plantType2, 849)
Alloc($mushroomPacks, 507)
Alloc($chemist, 980)
Alloc($beachPed1, 991)
Alloc($growhouseSecurityBought, 834)
Alloc($dbSaveMission3PhoneDone, 896)
Alloc($isaacPrompt, 354)
Alloc($farmPrompt, 752)
Alloc($cocaReady, 827)
Alloc($dbSaveMushroomPacks, 888)
Alloc($workerHarvestReady, 730)
Alloc($plantStart2, 857)
Alloc($dbSaveOpiumGrams, 881)
Alloc($chemistBlip, 385)
Alloc($hillPlantBlip4, 230)
Alloc($farmCocaSeedsReady, 765)
Alloc($smuggleActive, 773)
Alloc($mexicanMarker, 794)
Alloc($dbSaveMexicanContactTalked, 927)
Alloc($palominoPrompt, 240)
Alloc($mayaIntroActorSpawned, 510)
Alloc($farmBlip, 750)
Alloc($dbSaveCocaSeeds, 890)
Alloc($palominoContact, 950)
Alloc($akFirstSaleCallPending, 742)
Alloc($poppyStage, 862)
Alloc($poppyZ, 944)
Alloc($dbSaveEcstasyPills, 879)
Alloc($dbSaveWorkerSeeds, 912)
Alloc($groveWorker, 956)
Alloc($farmDrugBox4, 1000)
Alloc($plantStart1, 856)
Alloc($dbSaveNightlifeUnlocked, 908)
Alloc($dbSaveMorganFarmMoved, 923)
Alloc($akSaleCallStart, 744)
Alloc($farmPatriot, 996)
Alloc($morganFarmUpgradeBought, 767)
Alloc($dbSaveChemistDiscovered, 905)
Alloc($cocaY, 946)
Alloc($mayaMenu, 516)
Alloc($hillPrompt2, 224)
Alloc($hillGuard4, 971)
Alloc($ecstasyDealerStage, 402)
Alloc($cocaineGrams, 825)
Alloc($tyrellPrompt, 572)
Alloc($mexicanContactTalked, 790)
Alloc($dbSaveRegularHarvestedGrams, 875)
Alloc($dbSaveSlingingRepBeach, 901)
Alloc($myronBlip, 842)
Alloc($plant2Z, 937)
Alloc($supplierAkTalkDone, 740)
Alloc($route1TrustedBonus, 783)
Alloc($ecstasyDealerBlip, 399)
Alloc($mexicanContactSpawned, 788)
Alloc($hillPlant1, 986)
Alloc($poppyReady, 861)
Alloc($plantType1, 848)
Alloc($seedRoll, 736)
Alloc($farmGrowStart, 758)
Alloc($route1CocaineDone, 781)
Alloc($nightSpawnIndex, 563)
Alloc($harvestedCrops, 737)
Alloc($weedPlant2, 967)
Alloc($poppyX, 942)
Alloc($akSeedPacks, 203)
Alloc($opiumGrams, 376)
Alloc($workerAkPlant, 972)
Alloc($nightCustomerActive, 521)
Alloc($hillPlantDone4, 222)
Alloc($growhouseBlip, 233)
Alloc($mission6Started, 355)
Alloc($farmGuard1, 957)
Alloc($mission8Started, 746)
Alloc($labTable, 981)
Alloc($plantBlip1, 858)
Alloc($mission2Complete, 207)
Alloc($mission6SoldGrams, 356)
Alloc($labPack2, 983)
Alloc($isaacDiscovered, 244)
Alloc($missionBriefcase, 965)
Alloc($mission3PhoneDone, 214)
Alloc($empirePhaseUnlocked, 786)
Alloc($dbSaveMorganLsdReady, 925)
Alloc($smuggleRoute, 778)
Alloc($farmAkPlant4, 1004)
Alloc($mission5Started, 241)
Alloc($growStage2, 853)
Alloc($mission2AutoStart, 209)
Alloc($dbSaveMorganDeals, 924)
Alloc($farmCocaPlant, 1001)
Alloc($farmDrugBox1, 997)
Alloc($dbSaveWorkerHarvestReady, 913)
Alloc($route1UpgradeBought, 782)
Alloc($dbSaveLsdTabs, 887)
Alloc($smuggleTruck, 985)
Alloc($plantReady1, 850)
Alloc($dbSaveFarmOwned, 916)
Alloc($chemistQuestionBlip, 386)
Alloc($workerAkStart, 733)
Alloc($farmHarvestReady, 759)
Alloc($dbSaveGrowhouseOwned, 910)
Alloc($smuggleBlip, 774)
Alloc($nightlifeRep, 520)
Alloc($slingCustomer, 952)
Alloc($hillPlantBlip3, 229)
Alloc($mission3Started, 212)
Alloc($smuggleCargoType, 780)
Alloc($mission9Sales, 567)
Alloc($slingingRepBeach, 358)
Alloc($myronIntroCallDone, 836)
Alloc($morganFarmPrompt, 769)
Alloc($farmGuard3, 960)
Alloc($farmCocaPlant2, 1005)
Alloc($palominoContactTalked, 239)
Alloc($dbSaveWeedGrams, 869)
Alloc($growStage1, 852)
Alloc($dbSaveHarvestedCrops, 874)
Alloc($ecstasyDealerPrompt, 396)
Alloc($ecstasyPackSize, 403)
Alloc($farmPoppySeeds, 757)
Alloc($dbSaveMission4Complete, 897)
Alloc($dbSaveMission6Started, 899)
Alloc($dbSaveFarmCocaSeeds, 920)
Alloc($hillPlantBlip2, 228)
Alloc($mayaPrompt, 513)
Alloc($tyrellCallTime, 569)
Alloc($smuggleLoad, 776)
Alloc($poppyBlip, 866)
Alloc($mission3ContactSpawned, 215)
Alloc($dbSaveCocaLeaves, 891)
Alloc($buyer, 949)
Alloc($nightCustomer, 954)
Alloc($farmPoppyPlant3, 975)
Alloc($mission2Ready, 208)
Alloc($chemistUnlocked, 380)
Alloc($nightCustomerMenu, 522)
Alloc($dbSaveFarmCrewSpawned, 917)
Alloc($farmCocaPlant3, 1006)
Alloc($plant1Y, 933)
Alloc($plant1Z, 934)
Alloc($farmAkPlant2, 1002)
Alloc($dbSaveSlotUsed, 867)
Alloc($palominoContactBlip, 238)
Alloc($hillPrompt4, 226)
Alloc($farmAkReadyGrams, 761)
Alloc($workerSeeds, 707)
Alloc($farmCocaLeavesReady, 764)
Alloc($cocaPrompt, 829)
Alloc($workerGrowStart, 729)
Alloc($myronPrompt, 839)
Alloc($dbSaveTyrellCrewSpawned, 911)
Alloc($hillPlantBlip1, 227)
Alloc($slingingUnlocked, 357)
Alloc($isaac, 951)
Alloc($hillGuard3, 970)
Alloc($poppyPlant, 963)
Alloc($mission3Harvested, 213)
Alloc($hillPlant2, 987)
Alloc($dbSaveWorkerAkActive, 915)
Alloc($dbSavePoppySeeds, 880)
Alloc($harvestPrompt2, 855)
Alloc($mission3Ready, 210)
Alloc($cocaZ, 947)
Alloc($chemistCallDone, 388)
Alloc($plantReady2, 851)
Alloc($isaacBlip, 246)
Alloc($mayaBlip, 514)
Alloc($farmAkSeeds, 756)

nop 
wait 3000
0@ = -1
1@ = -1
2@ = -1
3@ = -1
4@ = 0
5@ = -1
6@ = 0
7@ = 0
8@ = 0
9@ = 0
10@ = 0
11@ = 1
12@ = 0
13@ = 0
14@ = 0
18@ = 1
17@ = 0
25@ = 0
26@ = 0
$drugHeat = 0
$akSeedPacks = 0
$akWeedGrams = 0
$mission2Unlocked = 0
$mission2Started = 0
$mission2Complete = 0
$mission2Ready = 0
$mission2AutoStart = 0
$mission3Ready = 0
$mission3Unlocked = 0
$mission3Started = 0
$mission3Harvested = 0
$mission3PhoneDone = 0
$mission3ContactSpawned = 0
$mission4Started = 0
$mission4AkHarvested = 0
$mission4Complete = 0
$hillPlantDone1 = 0
$hillPlantDone2 = 0
$hillPlantDone3 = 0
$hillPlantDone4 = 0
$hillPrompt1 = 0
$hillPrompt2 = 0
$hillPrompt3 = 0
$hillPrompt4 = 0
$hillPrompt1 = 0
$hillPrompt2 = 0
$hillPrompt3 = 0
$hillPrompt4 = 0
$hillPlantBlip1 = -1
$hillPlantBlip2 = -1
$hillPlantBlip3 = -1
$hillPlantBlip4 = -1
$hillGuardsSpawned = 0
$growhouseMarker = -1
$growhouseBlip = -1
$growhouseOwned = 0
$growhousePrompt = 0
$growhouseTyrellCallDone = 0
$palominoContactMarker = -1
$palominoContactBlip = -1
$palominoContactTalked = 0
$palominoPrompt = 0
$mission5Started = 0
$mission5CallDone = 0
$isaacSpawned = 0
$isaacDiscovered = 0
$isaacMarker = -1
$isaacBlip = -1
$isaacPrompt = 0
$mission6Started = 0
$mission6SoldGrams = 0
$slingingUnlocked = 0
$slingingRepBeach = 0
$slingCustomerActive = 0
$slingCustomerMenu = 0
$slingCustomerPrompt = 0
$slingCustomerBlip = -1
$slingCustomerMarker = -1
$slingNextSpawn = 0
$slingThanks = 0
$slingSpawnIndex = 0
$slingDeals = 0
$slingDealsSinceHeat = 0
$slingSalePrice = 0
$beachCrowdSpawned = 0
$ecstasyPills = 0
$poppySeeds = 0
$opiumGrams = 0
$heroinGrams = 0
$mission7Started = 0
$chemistUnlocked = 0
$chemistSpawned = 0
$chemistDiscovered = 0
$chemistPrompt = 0
$chemistBlip = -1
$chemistQuestionBlip = -1
$chemistMarker = -1
$chemistCallDone = 0
$ecstasyDealerSpawned = 0
$ecstasyDealerPrompt = 0
$ecstasyDealerMenu = 0
$ecstasyDealerBlip = -1
$ecstasyDealerMarker = -1
$ecstasyDealerDeals = 0
$ecstasyDealerStage = 0
$ecstasyPackSize = 5
$lsdTabs = 0
$mushroomPacks = 0
$mayaUnlocked = 0
$mayaIntroSpawned = 0
$mayaIntroActorSpawned = 0
$mayaObjectiveStarted = 0
$mayaPrompt = 0
$mayaBlip = -1
$mayaMarker = -1
$mayaMenu = 0
$nightlifeSlingingUnlocked = 0
$nightlifeActive = 0
$nightlifeRep = 0
$nightCustomerActive = 0
$nightCustomerMenu = 0
$nightCustomerPrompt = 0
$nightCustomerBlip = -1
$nightCustomerMarker = -1
$nightNextSpawn = 0
$nightSpawnIndex = 0
$nightCustomerModel = 7
$mission9Started = 0
$mission9Sales = 0
$slingCustomerModel = 7
$tyrellCallTime = 0
$tyrellCrewSpawned = 0
$tyrellPrompt = 0
$tyrellMenu = 0
$workerSeeds = 0
$workerGrowStart = 0
$workerHarvestReady = 0
$workerHarvestGrams = 0
$workerAkActive = 0
$workerAkStart = 0
$workerAkReady = 0
$rewardRoll = 0
$seedRoll = 0
$harvestedCrops = 0
$regularHarvestedGrams = 0
$supplierAkTalkUnlocked = 0
$supplierAkTalkDone = 0
$hillGrowUnlocked = 0
$akFirstSaleCallPending = 0
$akFirstSaleCallShown = 0
$akSaleCallStart = 0
$mission8Unlocked = 0
$mission8Started = 0
$mission8Complete = 0
$farmGuardsSpawned = 0
$farmMarker = -1
$farmBlip = -1
$farmOwned = 0
$farmPrompt = 0
$farmCrewSpawned = 0
$farmWorkerPrompt = 0
$farmWorkerMenu = 0
$farmAkSeeds = 0
$farmPoppySeeds = 0
$farmGrowStart = 0
$farmHarvestReady = 0
$farmAkReadyGrams = 0
$farmOpiumReady = 0
$farmCocaSeeds = 0
$farmCocaLeavesReady = 0
$farmCocaSeedsReady = 0
$farmCocaAutoStarted = 0
$morganFarmUpgradeBought = 0
$morganFarmMoved = 0
$morganFarmPrompt = 0
$morganMenu = 0
$morganProcessDeals = 0
$morganLsdReady = 0
$smuggleActive = 0
$smuggleBlip = -1
$smuggleMarker = -1
$smuggleLoad = 0
$smugglePrompt = 0
$smuggleRoute = 0
$smuggleStage = 0
$smuggleCargoType = 0
$route1CocaineDone = 0
$route1UpgradeBought = 0
$route1TrustedBonus = 0
$farmPatriotSpawned = 0
$farmDrugBoxesSpawned = 0
$empirePhaseUnlocked = 0
$empireSupplierCallDone = 0
$mexicanContactSpawned = 0
$mexicanContactActorSpawned = 0
$mexicanContactTalked = 0
$mexicanPrompt = 0
$mexicanBlip = -1
$mexicanMarker = -1
$mysterySeeds = 0
$cocaSeeds = 0
$cocaLeaves = 0
$cocaineGrams = 0
$cocaPlanted = 0
$cocaReady = 0
$cocaStage = 0
$cocaPrompt = 0
$cocaStart = 0
$cocaGrowTicks = 0
$cocaBlip = -1
$cocaineBreakthroughDone = 0
$growhouseSecurityBought = 0
$growhouseSecuritySpawned = 0
$myronIntroCallDone = 0
$myronPhoneUnlocked = 0
$myronPhoneComplete = 0
$myronPrompt = 0
$myronBlip = -1
$myronMarker = -1
$myronSupplierCallDone = 0
$planted1 = 0
$planted2 = 0
$plantType1 = 0
$plantType2 = 0
$plantReady1 = 0
$plantReady2 = 0
$growStage1 = 0
$growStage2 = 0
$harvestPrompt1 = 0
$harvestPrompt2 = 0
$plantStart1 = 0
$plantStart2 = 0
$plantBlip1 = -1
$plantBlip2 = -1
$poppyPlanted = 0
$poppyReady = 0
$poppyStage = 0
$poppyPrompt = 0
$poppyStart = 0
$poppyBlip = -1
21@ = 0
22@ = 0
23@ = 0
19@ = 0
20@ = 0
24@ = 0
$dbSaveSlotUsed = 0
$dbSaveSeedPacks = 0
$dbSaveWeedGrams = 0
$dbSaveMissionStage = 1
$dbSaveFirstSaleTextShown = 0
$dbSaveTotalGramsSold = 0
$dbSaveMaxPlants = 1
$dbSaveHarvestedCrops = 0
$dbSaveRegularHarvestedGrams = 0
$dbSaveDrugHeat = 0
$dbSaveAkSeedPacks = 0
$dbSaveAkWeedGrams = 0
$dbSaveEcstasyPills = 0
$dbSavePoppySeeds = 0
$dbSaveOpiumGrams = 0
$dbSaveHeroinGrams = 0
$dbSaveLsdTabs = 0
$dbSaveMushroomPacks = 0
$dbSaveMysterySeeds = 0
$dbSaveCocaSeeds = 0
$dbSaveCocaLeaves = 0
$dbSaveCocaineGrams = 0
$dbSaveMission2Ready = 0
$dbSaveMission2Complete = 0
$dbSaveMission3Ready = 0
$dbSaveMission3PhoneDone = 0
$dbSaveMission4Complete = 0
$dbSaveMission5CallDone = 0
$dbSaveMission6Started = 0
$dbSaveSlingingUnlocked = 0
$dbSaveSlingingRepBeach = 0
$dbSaveSlingDeals = 0
$dbSaveChemistUnlocked = 0
$dbSaveChemistDiscovered = 0
$dbSaveEcstasyDealerStage = 0
$dbSaveMayaUnlocked = 0
$dbSaveNightlifeUnlocked = 0
$dbSaveNightlifeRep = 0
$dbSaveGrowhouseOwned = 0
$dbSaveTyrellCrewSpawned = 0
$dbSaveWorkerSeeds = 0
$dbSaveWorkerHarvestReady = 0
$dbSaveWorkerHarvestGrams = 0
$dbSaveWorkerAkActive = 0
$dbSaveFarmOwned = 0
$dbSaveFarmCrewSpawned = 0
$dbSaveFarmAkSeeds = 0
$dbSaveFarmPoppySeeds = 0
$dbSaveFarmCocaSeeds = 0
$dbSaveFarmHarvestReady = 0
$dbSaveMorganFarmMoved = 0
$dbSaveMorganDeals = 0
$dbSaveMorganLsdReady = 0
$dbSaveEmpirePhaseUnlocked = 0
$dbSaveMexicanContactTalked = 0
$dbSaveCocaineBreakthroughDone = 0
$dbSaveMoney = 0
$dbSaveCurrentMoney = 0
$mission2EnemyCleaned = 0
$plant1X = 0.0
$plant1Y = 0.0
$plant1Z = 0.0
$plant2X = 0.0
$plant2Y = 0.0
$plant2Z = 0.0
$slingCustomerX = 0.0
$slingCustomerY = 0.0
$slingCustomerZ = 0.0
$poppyX = 0.0
$poppyY = 0.0
$poppyZ = 0.0
$cocaX = 0.0
$cocaY = 0.0
$cocaZ = 0.0
gosub @Noname_27751
request_model #WMYCLOT
request_model #SBMYST

:Noname_2309
  not has_model_loaded #WMYCLOT
goto_if_false @Noname_2332
wait 0
goto @Noname_2309

:Noname_2332
  not has_model_loaded #SBMYST
goto_if_false @Noname_2355
wait 0
goto @Noname_2332

:Noname_2355
$supplier = create_char PedType.CivMale {modelId} #WMYCLOT {x} 2467.4016 {y} -1753.9628 {z} 13.0
set_char_heading $supplier {heading} 180.0
wait 500
freeze_char_position $supplier {state} True
$buyer = create_char PedType.CivMale {modelId} #SBMYST {x} 2306.9053 {y} -1794.9338 {z} 13.5468
set_char_heading $buyer {heading} 92.0
wait 500
freeze_char_position $buyer {state} True
mark_model_as_no_longer_needed #WMYCLOT
mark_model_as_no_longer_needed #SBMYST
0@ = -1
2@ = add_short_range_sprite_blip_for_coord 2467.4016 {y} -1755.2 {z} 13.0 {sprite} RadarSprite.Cash
print_help_formatted "Grove Street is quiet, but money is thin."
wait 3000
print_help_formatted "A supplier is waiting near Ryder's place."
wait 3000
print_string_now "Drug Empire~n~v1.0.3" {time} 6000
wait 2500
print_string_now "MISSION STARTED~n~Meet the supplier" {time} 5000

:Noname_2664
wait 0
15@ = get_game_timer 
24@ = 0
23@ = 1
if 
  is_char_in_any_car $scplayer
goto_if_false @Noname_2738
23@ = 0
21@ = 0
20@ = 0
$mayaMenu = 0
$morganMenu = 0

:Noname_2738
if 
  is_key_just_pressed KeyCode.NumPad7
goto_if_false @Noname_2765
gosub @Noname_28530
wait 500

:Noname_2765
if 
  is_key_just_pressed KeyCode.NumPad9
goto_if_false @Noname_2792
gosub @Noname_34004
wait 500

:Noname_2792
if 
  is_int_lvar_greater_than_int_lvar 21@ > 15@
goto_if_false @Noname_3066
if 
  23@ == 1
goto_if_false @Noname_3066
gosub @Noname_80014
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_2879
22@ = 1
set_lvar_int_to_lvar_int 21@ = 15@
21@ += 8000
wait 300

:Noname_2879
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_2922
22@ = 2
set_lvar_int_to_lvar_int 21@ = 15@
21@ += 8000
wait 300

:Noname_2922
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_2965
22@ = 3
set_lvar_int_to_lvar_int 21@ = 15@
21@ += 8000
wait 300

:Noname_2965
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_3008
22@ = 4
set_lvar_int_to_lvar_int 21@ = 15@
21@ += 8000
wait 300

:Noname_3008
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_3066
21@ = 0
print_string_now "Closed Black Market Menu" {time} 2000
wait 500

:Noname_3066
if 
  23@ == 1
goto_if_false @Noname_3501
if 
  is_key_just_pressed KeyCode.F5
goto_if_false @Noname_3321
if 
  19@ == 0
goto_if_false @Noname_3255
load_texture_dictionary 'DRUGSMENU'
load_sprite 1 {spriteName} 'weed'
load_sprite 2 {spriteName} 'ak47'
load_sprite 3 {spriteName} 'ecstasy'
load_sprite 4 {spriteName} 'opium'
load_sprite 5 {spriteName} 'heroin'
load_sprite 6 {spriteName} 'mushrooms'
load_sprite 7 {spriteName} 'lsd'
load_sprite 8 {spriteName} 'cocaine'
19@ = 2

:Noname_3255
21@ = 0
set_lvar_int_to_lvar_int 20@ = 15@
20@ += 8000
print_string_now "INVENTORY~n~F5 icons, F6 status" {time} 2000
wait 300

:Noname_3321
if 
  is_key_just_pressed KeyCode.F6
goto_if_false @Noname_3378
20@ = 0
22@ = 3
set_lvar_int_to_lvar_int 21@ = 15@
21@ += 8000
gosub @Noname_80014
wait 300

:Noname_3378
if 
  is_key_just_pressed KeyCode.B
goto_if_false @Noname_3501
22@ += 1
if 
  22@ > 4
goto_if_false @Noname_3425
22@ = 1

:Noname_3425
set_lvar_int_to_lvar_int 21@ = 15@
21@ += 8000
gosub @Noname_80014
print_string_now "BLACK MARKET v1.1~n~B next, 1-4 pages, N close" {time} 2000

:Noname_3501
if 
  is_int_lvar_greater_than_int_lvar 20@ > 15@
goto_if_false @Noname_4327
use_text_commands True
draw_sprite 1 {offsetLeft} 455.0 {offsetTop} 124.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 2 {offsetLeft} 500.0 {offsetTop} 124.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 3 {offsetLeft} 545.0 {offsetTop} 124.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 4 {offsetLeft} 590.0 {offsetTop} 124.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 5 {offsetLeft} 455.0 {offsetTop} 176.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 6 {offsetLeft} 500.0 {offsetTop} 176.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 7 {offsetLeft} 545.0 {offsetTop} 176.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
draw_sprite 8 {offsetLeft} 590.0 {offsetTop} 176.0 {width} 34.0 {height} 34.0 {r} 255 {g} 255 {b} 255 {a} 255
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 455.0 {offsetTop} 145.0 {key} 'NUMBER' {num} 9@ // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 500.0 {offsetTop} 145.0 {key} 'NUMBER' {num} $akWeedGrams // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 545.0 {offsetTop} 145.0 {key} 'NUMBER' {num} $ecstasyPills // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 590.0 {offsetTop} 145.0 {key} 'NUMBER' {num} $opiumGrams // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 455.0 {offsetTop} 197.0 {key} 'NUMBER' {num} $heroinGrams // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 500.0 {offsetTop} 197.0 {key} 'NUMBER' {num} $mushroomPacks // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 545.0 {offsetTop} 197.0 {key} 'NUMBER' {num} $lsdTabs // ~1~
set_text_scale 0.22 {heightScale} 0.7
set_text_colour 255 {green} 255 {blue} 255 {alpha} 255
set_text_centre True
set_text_proportional True
display_text_with_number 590.0 {offsetTop} 197.0 {key} 'NUMBER' {num} $cocaineGrams // ~1~
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_4327
20@ = 0
print_string_now "Closed drug icons" {time} 2000
wait 500

:Noname_4327
if 
  23@ == 1
goto_if_false @Noname_4627
if 
  is_key_just_pressed KeyCode.I
goto_if_false @Noname_4627
if 
  19@ == 0
goto_if_false @Noname_4571
load_texture_dictionary 'DRUGSMENU'
load_sprite 1 {spriteName} 'weed'
load_sprite 2 {spriteName} 'ak47'
load_sprite 3 {spriteName} 'ecstasy'
load_sprite 4 {spriteName} 'opium'
load_sprite 5 {spriteName} 'heroin'
load_sprite 6 {spriteName} 'mushrooms'
load_sprite 7 {spriteName} 'lsd'
load_sprite 8 {spriteName} 'cocaine'
19@ = 2
print_string_now "DRUG ICONS LOADED~n~Press I again to show" {time} 4000
goto @Noname_4622

:Noname_4571
set_lvar_int_to_lvar_int 20@ = 15@
20@ += 8000
print_string_now "DRUG ICONS~n~I show, N close" {time} 2000

:Noname_4622
wait 500

:Noname_4627
if 
  $ecstasyDealerDeals > 0
goto_if_false @Noname_4685
if 
  $ecstasyDealerBlip == -1
goto_if_false @Noname_4685
$ecstasyDealerBlip = add_short_range_sprite_blip_for_coord 408.0 {y} -2052.0 {z} 8.9 {sprite} RadarSprite.Cash

:Noname_4685
if 
  $slingDeals > 4
goto_if_false @Noname_4728
if 
  $ecstasyDealerSpawned == 0
goto_if_false @Noname_4728
gosub @Noname_46859

:Noname_4728
if 
  $route1TrustedBonus == 1
goto_if_false @Noname_4771
if 
  $myronIntroCallDone == 0
goto_if_false @Noname_4771
gosub @Noname_77075

:Noname_4771
if 
  $myronPhoneUnlocked == 1
goto_if_false @Noname_5029
if 
  $myronPhoneComplete == 0
goto_if_false @Noname_5029
if 
  $myronBlip == -1
goto_if_false @Noname_4847
$myronBlip = add_short_range_sprite_blip_for_coord 2259.2998 {y} -1211.9023 {z} 23.9687 {sprite} RadarSprite.Qmark

:Noname_4847
if 
  $myronMarker == -1
goto_if_false @Noname_4890
$myronMarker = add_sphere 2259.2998 {y} -1211.9023 {z} 23.9687 {radius} 1.3

:Noname_4890
if 
  locate_char_any_means_3d $scplayer {x} 2259.2998 {y} -1211.9023 {z} 23.9687 {xRadius} 1.7 {yRadius} 1.7 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_5022
if 
  $myronPrompt == 0
goto_if_false @Noname_4988
print_help_string "Press T to call Myron"
$myronPrompt = 1

:Noname_4988
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_5015
gosub @Noname_77442
wait 500

:Noname_5015
goto @Noname_5029

:Noname_5022
$myronPrompt = 0

:Noname_5029
if 
  $myronPhoneComplete == 1
goto_if_false @Noname_5336
if 
  $myronSupplierCallDone == 0
goto_if_false @Noname_5072
gosub @Noname_77933

:Noname_5072
if 
  $myronSupplierCallDone == 1
goto_if_false @Noname_5336
if 
  $smuggleActive == 0
goto_if_false @Noname_5336
if 
  $myronBlip == -1
goto_if_false @Noname_5148
$myronBlip = add_short_range_sprite_blip_for_coord 2259.2998 {y} -1211.9023 {z} 23.9687 {sprite} RadarSprite.Qmark

:Noname_5148
if 
  $myronMarker == -1
goto_if_false @Noname_5191
$myronMarker = add_sphere 2259.2998 {y} -1211.9023 {z} 23.9687 {radius} 1.3

:Noname_5191
if 
  locate_char_any_means_3d $scplayer {x} 2259.2998 {y} -1211.9023 {z} 23.9687 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 1.8 {drawSphere} False
goto_if_false @Noname_5329
if 
  $myronPrompt == 0
goto_if_false @Noname_5295
print_help_string "Press T for Myron bulk line"
$myronPrompt = 1

:Noname_5295
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_5322
gosub @Noname_78339
wait 500

:Noname_5322
goto @Noname_5336

:Noname_5329
$myronPrompt = 0

:Noname_5336
if 
  $smuggleActive == 1
goto_if_false @Noname_5517
if 
  $smuggleRoute == 9
goto_if_false @Noname_5517
if 
  locate_char_any_means_3d $scplayer {x} 2226.3999 {y} -1163.1 {z} 25.7794 {xRadius} 2.4 {yRadius} 2.4 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_5510
if 
  $smugglePrompt == 0
goto_if_false @Noname_5476
print_help_string "Press T to load Myron cargo"
$smugglePrompt = 1

:Noname_5476
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_5503
gosub @Noname_79733
wait 500

:Noname_5503
goto @Noname_5517

:Noname_5510
$smugglePrompt = 0

:Noname_5517
17@ = 0
if 
  $planted1 == 1
goto_if_false @Noname_5549
17@ += 1

:Noname_5549
if 
  $planted2 == 1
goto_if_false @Noname_5574
17@ += 1

:Noname_5574
if 
  4@ == 0
goto_if_false @Noname_5738
if 
  locate_char_any_means_3d $scplayer {x} 2306.9053 {y} -1794.9338 {z} 13.5468 {xRadius} 10.0 {yRadius} 10.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @Noname_5738
4@ = 1
1@ = add_sphere 2305.7 {y} -1794.9 {z} 13.5468 {radius} 1.0
3@ = add_short_range_sprite_blip_for_coord 2305.7 {y} -1794.9 {z} 13.5468 {sprite} RadarSprite.Cash
print_string_now "BUYER FOUND~n~Buyer marked on the map" {time} 5000

:Noname_5738
if 
  $mission3Started == 1
goto_if_false @Noname_6887
if 
  $hillGuardsSpawned == 0
goto_if_false @Noname_5829
if 
  locate_char_any_means_3d $scplayer {x} 2455.6841 {y} -955.7086 {z} 80.762 {xRadius} 180.0 {yRadius} 180.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @Noname_5829
gosub @Noname_44640

:Noname_5829
if 
  $hillPlantDone1 == 0
goto_if_false @Noname_5987
if 
  locate_char_any_means_3d $scplayer {x} 2445.8552 {y} -950.28 {z} 80.283 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_5980
if 
  $hillPrompt1 == 0
goto_if_false @Noname_5946
print_help_string "Harvest AK-47. Press H"
$hillPrompt1 = 1

:Noname_5946
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_5973
gosub @Noname_71585
wait 500

:Noname_5973
goto @Noname_5987

:Noname_5980
$hillPrompt1 = 0

:Noname_5987
if 
  $hillPlantDone2 == 0
goto_if_false @Noname_6145
if 
  locate_char_any_means_3d $scplayer {x} 2443.3552 {y} -950.28 {z} 80.283 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_6138
if 
  $hillPrompt2 == 0
goto_if_false @Noname_6104
print_help_string "Harvest AK-47. Press H"
$hillPrompt2 = 1

:Noname_6104
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_6131
gosub @Noname_71618
wait 500

:Noname_6131
goto @Noname_6145

:Noname_6138
$hillPrompt2 = 0

:Noname_6145
if 
  $hillPlantDone3 == 0
goto_if_false @Noname_6303
if 
  locate_char_any_means_3d $scplayer {x} 2448.3552 {y} -950.28 {z} 80.283 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_6296
if 
  $hillPrompt3 == 0
goto_if_false @Noname_6262
print_help_string "Harvest AK-47. Press H"
$hillPrompt3 = 1

:Noname_6262
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_6289
gosub @Noname_71651
wait 500

:Noname_6289
goto @Noname_6303

:Noname_6296
$hillPrompt3 = 0

:Noname_6303
if 
  $hillPlantDone4 == 0
goto_if_false @Noname_6461
if 
  locate_char_any_means_3d $scplayer {x} 2445.8552 {y} -953.28 {z} 80.283 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_6454
if 
  $hillPrompt4 == 0
goto_if_false @Noname_6420
print_help_string "Harvest AK-47. Press H"
$hillPrompt4 = 1

:Noname_6420
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_6447
gosub @Noname_71684
wait 500

:Noname_6447
goto @Noname_6461

:Noname_6454
$hillPrompt4 = 0

:Noname_6461
if 
  $mission3Harvested > 3
goto_if_false @Noname_6887
if 
  $mission3PhoneDone == 0
goto_if_false @Noname_6887
$mission3PhoneDone = 1
$mission4Started = 1
$mission4AkHarvested = 0
$mission4Complete = 0
$hillGuardsSpawned = 2
$akSeedPacks += 2
print_string_now "MISSION PASSED~n~Hill Grow" {time} 6000
wait 3500
print_string_now "MISSION IV~n~Harvest 2 AK-47 plants~n~Do not sell AK-47 yet" {time} 7000
wait 4000
$drugHeat += 10
gosub @Noname_76539
print_string_now "PHONE CALL" {time} 3000
wait 2500
print_help_formatted "Unknown: You do not need to know me, but lay low."
wait 3500
print_help_formatted "Unknown: Come to Palomino Creek if you want this heat handled."
wait 4000
print_string_now "CONTACT AVAILABLE~n~Enter Palomino Creek" {time} 6000
$growhouseMarker = add_sphere 2450.5 {y} -949.8 {z} 80.69 {radius} 1.2

:Noname_6887
if 
  $growhouseMarker <> -1
goto_if_false @Noname_7221
if 
  $growhouseOwned == 0
goto_if_false @Noname_7221
if 
  locate_char_any_means_3d $scplayer {x} 2450.5 {y} -949.8 {z} 80.69 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_7214
if 
  $growhousePrompt == 0
goto_if_false @Noname_7033
print_help_string "Press Y to buy growhouse for $500"
$growhousePrompt = 1

:Noname_7033
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_7207
if 
  is_score_greater $player1 {money} 499
goto_if_false @Noname_7179
add_score $player1 {money} -500
$growhouseOwned = 1
remove_sphere $growhouseMarker
$growhouseMarker = -1
$growhouseBlip = add_short_range_sprite_blip_for_coord 2450.5 {y} -949.8 {z} 80.69 {sprite} RadarSprite.Cash
print_string_now "GROWHOUSE PURCHASED" {time} 5000
wait 3000
if 
  $growhouseTyrellCallDone == 0
goto_if_false @Noname_7172
gosub @Noname_45070

:Noname_7172
goto @Noname_7202

:Noname_7179
print_string_now "Not enough money" {time} 3000

:Noname_7202
wait 500

:Noname_7207
goto @Noname_7221

:Noname_7214
$growhousePrompt = 0

:Noname_7221
if 
  $mission3PhoneDone == 1
goto_if_false @Noname_7492
if 
  $mission3ContactSpawned == 0
goto_if_false @Noname_7492
if 
  locate_char_any_means_3d $scplayer {x} 2268.0 {y} -75.0 {z} 26.5 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @Noname_7492
$mission3ContactSpawned = 1
request_model #DSHER

:Noname_7317
  not has_model_loaded #DSHER
goto_if_false @Noname_7340
wait 0
goto @Noname_7317

:Noname_7340
$palominoContact = create_char PedType.CivMale {modelId} #DSHER {x} 2257.0 {y} -83.0 {z} 26.5
set_char_heading $palominoContact {heading} 90.0
wait 500
freeze_char_position $palominoContact {state} True
mark_model_as_no_longer_needed #DSHER
$palominoContactBlip = add_short_range_sprite_blip_for_coord 2257.0 {y} -83.0 {z} 26.5 {sprite} RadarSprite.Qmark
$palominoContactMarker = add_sphere 2255.8 {y} -83.0 {z} 26.5 {radius} 1.2
print_string_now "CONTACT FOUND~n~Question mark added to the map" {time} 6000

:Noname_7492
if 
  $mission3ContactSpawned == 1
goto_if_false @Noname_7822
if 
  locate_char_any_means_3d $scplayer {x} 2255.8 {y} -83.0 {z} 26.5 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_7815
if 
  $palominoContactTalked == 0
goto_if_false @Noname_7654
if 
  $palominoPrompt == 0
goto_if_false @Noname_7620
print_help_string "Press T to talk"
$palominoPrompt = 1

:Noname_7620
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_7647
gosub @Noname_71717
wait 500

:Noname_7647
goto @Noname_7808

:Noname_7654
if 
  $palominoPrompt == 0
goto_if_false @Noname_7727
print_help_string "1 small bribe, 2 medium bribe, 3 large bribe"
$palominoPrompt = 1

:Noname_7727
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_7754
gosub @Noname_72087
wait 500

:Noname_7754
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_7781
gosub @Noname_72222
wait 500

:Noname_7781
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_7808
gosub @Noname_72358
wait 500

:Noname_7808
goto @Noname_7822

:Noname_7815
$palominoPrompt = 0

:Noname_7822
if 
  $mission5Started == 1
goto_if_false @Noname_8621
if 
  $isaacSpawned == 0
goto_if_false @Noname_7989
if 
  locate_char_any_means_3d $scplayer {x} 370.0 {y} -2046.0 {z} 8.2 {xRadius} 90.0 {yRadius} 90.0 {zRadius} 25.0 {drawSphere} False
goto_if_false @Noname_7989
request_model #BMORI

:Noname_7910
  not has_model_loaded #BMORI
goto_if_false @Noname_7932
wait 0
goto @Noname_7910

:Noname_7932
$isaac = create_char PedType.CivMale {modelId} #BMORI {x} 370.0 {y} -2046.0 {z} 8.6
set_char_heading $isaac {heading} 120.0
wait 500
freeze_char_position $isaac {state} True
mark_model_as_no_longer_needed #BMORI
$isaacSpawned = 1

:Noname_7989
if 
  $isaacDiscovered == 0
goto_if_false @Noname_8149
if 
  locate_char_any_means_3d $scplayer {x} 370.0 {y} -2046.0 {z} 8.6 {xRadius} 35.0 {yRadius} 35.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @Noname_8149
$isaacDiscovered = 1
$isaacBlip = add_short_range_sprite_blip_for_coord 368.8 {y} -2045.2 {z} 8.6 {sprite} RadarSprite.Cash
$isaacMarker = add_sphere 368.8 {y} -2045.2 {z} 8.6 {radius} 1.2
print_string_now "ISAAC FOUND~n~Dollar marker added" {time} 5000

:Noname_8149
if 
  $isaacDiscovered == 1
goto_if_false @Noname_8621
if 
  locate_char_any_means_3d $scplayer {x} 368.8 {y} -2045.2 {z} 8.6 {xRadius} 1.5 {yRadius} 1.5 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_8614
if 
  $isaacPrompt == 0
goto_if_false @Noname_8259
print_help_string "Press T to talk"
$isaacPrompt = 1

:Noname_8259
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_8607
if 
  $mission6Started == 0
goto_if_false @Noname_8306
gosub @Noname_45620
goto @Noname_8602

:Noname_8306
if 
  $slingingUnlocked == 1
goto_if_false @Noname_8461
$slingingUnlocked = 0
if 
  $beachCrowdSpawned == 1
goto_if_false @Noname_8356
gosub @Noname_53062

:Noname_8356
print_string_now "SLINGING PAUSED" {time} 3000
wait 1500
print_help_formatted "Isaac: Alright, I will stop sending beach customers your way."
wait 3000
goto @Noname_8602

:Noname_8461
$slingingUnlocked = 1
set_var_int_to_lvar_int $slingNextSpawn = 15@
$slingNextSpawn += 10000
print_string_now "Slinging - Santa Maria Beach" {time} 4000
wait 1500
print_help_formatted "Isaac: I will put word out. Watch for marked customers on the beach."
wait 3500

:Noname_8602
wait 500

:Noname_8607
goto @Noname_8621

:Noname_8614
$isaacPrompt = 0

:Noname_8621
if 
  $slingingUnlocked == 1
goto_if_false @Noname_9528
if 
  $mission5Started == 1
goto_if_false @Noname_8682
if 
  $mission6Started == 0
goto_if_false @Noname_8682
gosub @Noname_70291

:Noname_8682
if 
  locate_char_any_means_3d $scplayer {x} 370.0 {y} -2046.0 {z} 8.2 {xRadius} 520.0 {yRadius} 520.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @Noname_9528
if 
  $beachCrowdSpawned == 0
goto_if_false @Noname_8755
gosub @Noname_52773

:Noname_8755
if 
  $slingCustomerActive == 0
goto_if_false @Noname_8954
if 
  $mayaIntroSpawned <> 1
goto_if_false @Noname_8954
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $slingNextSpawn
if 
  16@ > 0
goto_if_false @Noname_8954
if 
  $drugHeat > 99
goto_if_false @Noname_8947
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_lvar_from_int_lvar 16@ -= 26@
if 
  16@ > 0
goto_if_false @Noname_8940
print_string_now "HEAT CRITICAL~n~Customers are laying low" {time} 5000
set_lvar_int_to_lvar_int 26@ = 15@
26@ += 20000

:Noname_8940
goto @Noname_8954

:Noname_8947
gosub @Noname_46114

:Noname_8954
if 
  $slingCustomerActive == 1
goto_if_false @Noname_9528
if 
  is_char_dead $slingCustomer
goto_if_false @Noname_9002
gosub @Noname_55399
goto @Noname_9528

:Noname_9002
if 
  locate_char_any_means_3d $scplayer {x} $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @Noname_9514
if 
  $slingCustomerPrompt == 0
goto_if_false @Noname_9088
print_help_string "Press T to talk"
$slingCustomerPrompt = 1

:Noname_9088
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_9507
$mayaMenu = 0
$nightCustomerMenu = 0
$farmWorkerMenu = 0
$morganMenu = 0
10@ = 0
$slingCustomerMenu = 1
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_9251
print_formatted_now "CUSTOMER~n~1 AK1  2 AK5  3 AK20~n~4 XTC 5 Heroin 6 Opium 7 Coke~n~N close" {time} 7000
goto @Noname_9502

:Noname_9251
if 
  $chemistUnlocked == 1
goto_if_false @Noname_9350
print_formatted_now "CUSTOMER~n~1 AK1  2 AK5  3 AK20~n~4 XTC 5 Heroin 6 Opium~n~N close" {time} 7000
goto @Noname_9502

:Noname_9350
if 
  $ecstasyDealerDeals > 0
goto_if_false @Noname_9436
print_formatted_now "CUSTOMER~n~1 AK1  2 AK5  3 AK20~n~4 Ecstasy~n~N close" {time} 7000
goto @Noname_9502

:Noname_9436
print_formatted_now "CUSTOMER~n~1 AK-47 1g~n~2 AK-47 5g~n~3 AK-47 20g~n~N close" {time} 7000

:Noname_9502
wait 500

:Noname_9507
goto @Noname_9528

:Noname_9514
$slingCustomerPrompt = 0
$slingCustomerMenu = 0

:Noname_9528
if 
  $mission5Started == 1
goto_if_false @Noname_9647
if 
  $ecstasyDealerDeals > 0
goto_if_false @Noname_9604
if 
  $ecstasyDealerBlip == -1
goto_if_false @Noname_9604
$ecstasyDealerBlip = add_short_range_sprite_blip_for_coord 408.0 {y} -2052.0 {z} 8.9 {sprite} RadarSprite.Cash

:Noname_9604
if 
  $slingDeals > 4
goto_if_false @Noname_9647
if 
  $ecstasyDealerSpawned == 0
goto_if_false @Noname_9647
gosub @Noname_46859

:Noname_9647
if 
  $mission8Complete == 1
goto_if_false @Noname_10421
if 
  $mayaUnlocked == 0
goto_if_false @Noname_10421
if 
  $mayaObjectiveStarted == 0
goto_if_false @Noname_10421
$mayaObjectiveStarted = 1
print_string_now "PHONE CALL~n~Isaac" {time} 4000
wait 2500
print_help_formatted "Isaac: CJ, a special customer is asking about you at the beach."
wait 4500
print_help_formatted "Isaac: She is not regular beach traffic. Bring something unusual if you got it."
wait 4500
print_string_now "PHONE CALL~n~Maya" {time} 4000
wait 2500
print_help_formatted "Maya: Isaac says you found something unusual."
wait 4500
print_help_formatted "CJ: I got a tab of LSD from those Vagos at Hilltop."
wait 5000
print_help_formatted "CJ: If you know that crowd, maybe we should talk business."
wait 5000
print_help_formatted "Maya: LSD means you are not just beach traffic anymore."
wait 4500
print_help_formatted "Maya: I move with night people. Club people. Find me near Market."
wait 5000
if 
  $lsdTabs == 0
goto_if_false @Noname_10278
$lsdTabs += 1

:Noname_10278
$mayaUnlocked = 1
$nightlifeSlingingUnlocked = 1
$mayaIntroSpawned = 2
$mayaObjectiveStarted = 2
if 
  $mayaBlip <> -1
goto_if_false @Noname_10336
remove_blip $mayaBlip
$mayaBlip = -1

:Noname_10336
if 
  $mayaMarker <> -1
goto_if_false @Noname_10366
remove_sphere $mayaMarker
$mayaMarker = -1

:Noname_10366
$mayaBlip = -1
print_string_now "MAYA UNLOCKED~n~Dollar marker near Market" {time} 6000

:Noname_10421
if 
  $mayaIntroSpawned == 1
goto_if_false @Noname_10653
if 
  $mayaIntroActorSpawned == 0
goto_if_false @Noname_10464
gosub @Noname_47106

:Noname_10464
if 
  $mayaIntroActorSpawned == 1
goto_if_false @Noname_10512
if 
  is_char_dead $maya
goto_if_false @Noname_10512
$mayaIntroActorSpawned = 0
gosub @Noname_47106

:Noname_10512
if 
  locate_char_any_means_3d $scplayer {x} 258.5 {y} -1808.5 {z} 3.2 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_10646
if 
  $mayaPrompt == 0
goto_if_false @Noname_10612
print_help_string "Press T to talk to Maya"
$mayaPrompt = 1

:Noname_10612
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_10639
gosub @Noname_47359
wait 500

:Noname_10639
goto @Noname_10653

:Noname_10646
$mayaPrompt = 0

:Noname_10653
if 
  $mayaUnlocked == 1
goto_if_false @Noname_11242
if 
  $mayaIntroSpawned == 2
goto_if_false @Noname_10744
if 
  locate_char_any_means_3d $scplayer {x} 1095.0 {y} -1185.0 {z} 18.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_10744
gosub @Noname_48004

:Noname_10744
if 
  $mayaIntroSpawned == 3
goto_if_false @Noname_10842
if 
  $mayaIntroActorSpawned == 0
goto_if_false @Noname_10842
if 
  locate_char_any_means_3d $scplayer {x} 1095.0 {y} -1185.0 {z} 18.0 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_10842
$mayaIntroSpawned = 2
gosub @Noname_48004

:Noname_10842
if 
  $mayaIntroSpawned == 3
goto_if_false @Noname_11242
if 
  locate_char_any_means_3d $scplayer {x} 1093.8 {y} -1185.0 {z} 18.0 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_11228
if 
  $mayaPrompt == 0
goto_if_false @Noname_10960
print_help_string "Press T to talk to Maya"
$mayaPrompt = 1

:Noname_10960
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_11221
$slingCustomerMenu = 0
$nightCustomerMenu = 0
$farmWorkerMenu = 0
$morganMenu = 0
10@ = 0
$mayaMenu = 1
if 
  $mexicanContactTalked == 1
goto_if_false @Noname_11132
print_formatted_now "MAYA~n~1 XTC $60  2 LSD $60~n~3 Mushrooms $45~n~4 Nightlife  5 Sell coke~n~N close" {time} 7000
goto @Noname_11216

:Noname_11132
print_formatted_now "MAYA~n~1 XTC $60  2 LSD $60~n~3 Mushrooms $45~n~4 Toggle nightlife~n~N close" {time} 7000

:Noname_11216
wait 500

:Noname_11221
goto @Noname_11242

:Noname_11228
$mayaPrompt = 0
$mayaMenu = 0

:Noname_11242
if 
  $mayaMenu == 1
goto_if_false @Noname_11566
if 
  locate_char_any_means_3d $scplayer {x} 1093.8 {y} -1185.0 {z} 18.0 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_11559
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_11335
gosub @Noname_48451
wait 500

:Noname_11335
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_11362
gosub @Noname_48598
wait 500

:Noname_11362
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_11389
gosub @Noname_48754
wait 500

:Noname_11389
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_11416
gosub @Noname_49092
wait 500

:Noname_11416
if 
  is_key_just_pressed KeyCode.Num5
goto_if_false @Noname_11502
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_11463
gosub @Noname_48900
goto @Noname_11497

:Noname_11463
print_string_now "Maya is not buying that yet" {time} 3000

:Noname_11497
wait 500

:Noname_11502
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_11552
$mayaMenu = 0
print_string_now "Closed Maya menu" {time} 2000
wait 500

:Noname_11552
goto @Noname_11566

:Noname_11559
$mayaMenu = 0

:Noname_11566
if 
  $nightlifeActive == 1
goto_if_false @Noname_12224
if 
  locate_char_any_means_3d $scplayer {x} 1095.0 {y} -1185.0 {z} 18.0 {xRadius} 180.0 {yRadius} 180.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_12210
if 
  $nightCustomerActive == 0
goto_if_false @Noname_11823
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $nightNextSpawn
if 
  16@ > 0
goto_if_false @Noname_11823
if 
  $drugHeat > 99
goto_if_false @Noname_11816
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_lvar_from_int_lvar 16@ -= 26@
if 
  16@ > 0
goto_if_false @Noname_11809
print_string_now "HEAT CRITICAL~n~Nightlife customers are laying low" {time} 5000
set_lvar_int_to_lvar_int 26@ = 15@
26@ += 20000

:Noname_11809
goto @Noname_11823

:Noname_11816
gosub @Noname_49552

:Noname_11823
if 
  $nightCustomerActive == 1
goto_if_false @Noname_12203
if 
  is_char_dead $nightCustomer
goto_if_false @Noname_11871
gosub @Noname_50336
goto @Noname_12203

:Noname_11871
if 
  locate_char_any_means_3d $scplayer {x} $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_12189
if 
  $nightCustomerPrompt == 0
goto_if_false @Noname_11957
print_help_string "Press T to talk"
$nightCustomerPrompt = 1

:Noname_11957
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_12182
$mayaMenu = 0
$slingCustomerMenu = 0
$farmWorkerMenu = 0
$morganMenu = 0
10@ = 0
$nightCustomerMenu = 1
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_12112
print_formatted_now "NIGHT CUSTOMER~n~1 Ecstasy  2 LSD~n~3 Mushrooms  4 Coke~n~N close" {time} 7000
goto @Noname_12177

:Noname_12112
print_formatted_now "NIGHT CUSTOMER~n~1 Ecstasy  2 LSD~n~3 Mushrooms~n~N close" {time} 7000

:Noname_12177
wait 500

:Noname_12182
goto @Noname_12203

:Noname_12189
$nightCustomerPrompt = 0
$nightCustomerMenu = 0

:Noname_12203
goto @Noname_12224

:Noname_12210
$nightCustomerMenu = 0
$nightCustomerPrompt = 0

:Noname_12224
if 
  $nightCustomerMenu == 1
goto_if_false @Noname_12527
if 
  locate_char_any_means_3d $scplayer {x} $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {xRadius} 5.0 {yRadius} 5.0 {zRadius} 4.0 {drawSphere} False
goto_if_false @Noname_12520
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_12311
gosub @Noname_50440
wait 500

:Noname_12311
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_12338
gosub @Noname_50566
wait 500

:Noname_12338
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_12365
gosub @Noname_50684
wait 500

:Noname_12365
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_12459
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_12412
gosub @Noname_50814
goto @Noname_12454

:Noname_12412
print_string_now "Customer is not asking for that yet" {time} 3000

:Noname_12454
wait 500

:Noname_12459
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_12513
$nightCustomerMenu = 0
print_string_now "Closed customer menu" {time} 2000
wait 500

:Noname_12513
goto @Noname_12527

:Noname_12520
$nightCustomerMenu = 0

:Noname_12527
if 
  $smuggleActive == 1
goto_if_false @Noname_13239
if 
  $smuggleRoute == 1
goto_if_false @Noname_12714
if 
  locate_char_any_means_3d $scplayer {x} 1097.2 {y} -1185.0 {z} 18.0 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_12700
if 
  $smugglePrompt == 0
goto_if_false @Noname_12666
print_help_string "Press Y to unload shipment"
$smugglePrompt = 1

:Noname_12666
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_12693
gosub @Noname_63193
wait 800

:Noname_12693
goto @Noname_12707

:Noname_12700
$smugglePrompt = 0

:Noname_12707
goto @Noname_13239

:Noname_12714
if 
  $smuggleRoute == 2
goto_if_false @Noname_13239
if 
  $smuggleStage == 1
goto_if_false @Noname_12905
if 
  locate_char_any_means_3d $scplayer {x} 2450.5 {y} -949.8 {z} 80.69 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_12891
if 
  $smugglePrompt == 0
goto_if_false @Noname_12857
print_help_string "Press Y to load growhouse weed"
$smugglePrompt = 1

:Noname_12857
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_12884
gosub @Noname_65501
wait 800

:Noname_12884
goto @Noname_12898

:Noname_12891
$smugglePrompt = 0

:Noname_12898
goto @Noname_13239

:Noname_12905
if 
  $smuggleStage == 2
goto_if_false @Noname_13073
if 
  locate_char_any_means_3d $scplayer {x} 1097.2 {y} -1185.0 {z} 18.0 {xRadius} 2.5 {yRadius} 2.5 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_13059
if 
  $smugglePrompt == 0
goto_if_false @Noname_13025
print_help_string "Press Y to unload at Maya"
$smugglePrompt = 1

:Noname_13025
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_13052
gosub @Noname_65796
wait 800

:Noname_13052
goto @Noname_13066

:Noname_13059
$smugglePrompt = 0

:Noname_13066
goto @Noname_13239

:Noname_13073
if 
  $smuggleStage == 3
goto_if_false @Noname_13239
if 
  locate_char_any_means_3d $scplayer {x} 368.8 {y} -2045.2 {z} 8.6 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_13232
if 
  $smugglePrompt == 0
goto_if_false @Noname_13198
print_help_string "Press Y to finish empire route"
$smugglePrompt = 1

:Noname_13198
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_13225
gosub @Noname_66035
wait 800

:Noname_13225
goto @Noname_13239

:Noname_13232
$smugglePrompt = 0

:Noname_13239
if 
  $ecstasyDealerSpawned == 1
goto_if_false @Noname_13562
if 
  $ecstasyDealerBlip == -1
goto_if_false @Noname_13297
$ecstasyDealerBlip = add_short_range_sprite_blip_for_coord 408.0 {y} -2052.0 {z} 8.9 {sprite} RadarSprite.Cash

:Noname_13297
if 
  locate_char_any_means_3d $scplayer {x} 408.0 {y} -2052.0 {z} 8.9 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_13548
if 
  $ecstasyDealerPrompt == 0
goto_if_false @Noname_13389
print_help_string "Press T to talk"
$ecstasyDealerPrompt = 1

:Noname_13389
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_13541
$ecstasyDealerMenu = 1
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_13496
print_formatted_now "DEALER~n~1 Buy ecstasy~n~2 Sell 5g cocaine~n~N close" {time} 7000
goto @Noname_13536

:Noname_13496
print_formatted_now "DEALER~n~1 Buy ecstasy~n~N close" {time} 7000

:Noname_13536
wait 500

:Noname_13541
goto @Noname_13562

:Noname_13548
$ecstasyDealerPrompt = 0
$ecstasyDealerMenu = 0

:Noname_13562
if 
  $ecstasyDealerMenu == 1
goto_if_false @Noname_13809
if 
  locate_char_any_means_3d $scplayer {x} 408.0 {y} -2052.0 {z} 8.9 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_13802
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_13655
gosub @Noname_50942
wait 500

:Noname_13655
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_13743
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_13702
gosub @Noname_51604
goto @Noname_13738

:Noname_13702
print_string_now "Dealer is not buying that yet" {time} 3000

:Noname_13738
wait 500

:Noname_13743
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_13795
$ecstasyDealerMenu = 0
print_string_now "Closed dealer menu" {time} 2000
wait 500

:Noname_13795
goto @Noname_13809

:Noname_13802
$ecstasyDealerMenu = 0

:Noname_13809
if 
  $mission6Started == 2
goto_if_false @Noname_13852
if 
  $mission7Started == 0
goto_if_false @Noname_13852
gosub @Noname_55545

:Noname_13852
if 
  $slingCustomerMenu == 1
goto_if_false @Noname_14169
if 
  locate_char_any_means_3d $scplayer {x} $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {xRadius} 6.0 {yRadius} 6.0 {zRadius} 5.0 {drawSphere} False
goto_if_false @Noname_14162
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_13939
gosub @Noname_70431
wait 500

:Noname_13939
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_13966
gosub @Noname_70596
wait 500

:Noname_13966
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_13993
gosub @Noname_70761
wait 500

:Noname_13993
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_14020
gosub @Noname_70929
wait 500

:Noname_14020
if 
  is_key_just_pressed KeyCode.Num5
goto_if_false @Noname_14047
gosub @Noname_71055
wait 500

:Noname_14047
if 
  is_key_just_pressed KeyCode.Num6
goto_if_false @Noname_14074
gosub @Noname_71222
wait 500

:Noname_14074
if 
  is_key_just_pressed KeyCode.Num7
goto_if_false @Noname_14101
gosub @Noname_71344
wait 500

:Noname_14101
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_14155
$slingCustomerMenu = 0
print_string_now "Closed customer menu" {time} 2000
wait 500

:Noname_14155
goto @Noname_14169

:Noname_14162
$slingCustomerMenu = 0

:Noname_14169
if 
  $growhouseTyrellCallDone == 1
goto_if_false @Noname_14721
if 
  $tyrellCrewSpawned == 0
goto_if_false @Noname_14260
if 
  locate_char_any_means_3d $scplayer {x} 2456.0701 {y} -951.6974 {z} 80.768 {xRadius} 80.0 {yRadius} 80.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_14260
gosub @Noname_53091

:Noname_14260
if 
  $growhouseSecurityBought == 1
goto_if_false @Noname_14351
if 
  $growhouseSecuritySpawned == 0
goto_if_false @Noname_14351
if 
  locate_char_any_means_3d $scplayer {x} 2450.5 {y} -949.8 {z} 80.69 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_14351
gosub @Noname_54543

:Noname_14351
if 
  $tyrellCrewSpawned == 0
goto_if_false @Noname_14461
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $tyrellCallTime
if 
  16@ > 60000
goto_if_false @Noname_14461
if 
  locate_char_any_means_3d $scplayer {x} 2456.0701 {y} -951.6974 {z} 80.768 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_14461
gosub @Noname_53091

:Noname_14461
if 
  $tyrellCrewSpawned == 1
goto_if_false @Noname_14721
if 
  locate_char_any_means_3d $scplayer {x} 2456.0701 {y} -951.6974 {z} 80.768 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_14714
if 
  $tyrellPrompt == 0
goto_if_false @Noname_14581
print_help_string "Press T to talk to Tyrell"
$tyrellPrompt = 1

:Noname_14581
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_14707
freeze_char_position $tyrell {state} False
freeze_char_position $groveWorker {state} False
wait 800
freeze_char_position $tyrell {state} True
freeze_char_position $groveWorker {state} True
$tyrellMenu = 1
print_formatted_now "TYRELL~n~1 Give seed~n~2 Collect~n~3 Guard $2500~n~N close" {time} 7000
wait 500

:Noname_14707
goto @Noname_14721

:Noname_14714
$tyrellPrompt = 0

:Noname_14721
if 
  $tyrellMenu == 1
goto_if_false @Noname_14872
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_14766
gosub @Noname_53392
wait 500

:Noname_14766
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_14793
gosub @Noname_53869
wait 500

:Noname_14793
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_14820
gosub @Noname_54242
wait 500

:Noname_14820
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_14872
$tyrellMenu = 0
print_string_now "Closed Tyrell menu" {time} 2000
wait 500

:Noname_14872
if 
  $chemistUnlocked == 1
goto_if_false @Noname_15336
if 
  $morganFarmMoved == 0
goto_if_false @Noname_15336
if 
  $chemistCallDone == 1
goto_if_false @Noname_15336
if 
  $chemistDiscovered == 0
goto_if_false @Noname_14966
if 
  $chemistQuestionBlip == -1
goto_if_false @Noname_14966
$chemistQuestionBlip = add_short_range_sprite_blip_for_coord 475.1535 {y} -1143.6329 {z} 68.5578 {sprite} RadarSprite.Qmark

:Noname_14966
if 
  $chemistSpawned == 0
goto_if_false @Noname_15039
if 
  locate_char_any_means_3d $scplayer {x} 475.1535 {y} -1143.6329 {z} 68.5578 {xRadius} 100.0 {yRadius} 100.0 {zRadius} 30.0 {drawSphere} False
goto_if_false @Noname_15039
gosub @Noname_69569

:Noname_15039
if 
  $chemistDiscovered == 0
goto_if_false @Noname_15174
if 
  locate_char_any_means_3d $scplayer {x} 475.1535 {y} -1143.6329 {z} 68.5578 {xRadius} 30.0 {yRadius} 30.0 {zRadius} 10.0 {drawSphere} False
goto_if_false @Noname_15174
$chemistDiscovered = 1
$chemistMarker = add_sphere 473.8 {y} -1143.4 {z} 68.5578 {radius} 1.2
print_string_now "CHEMIST FOUND~n~Talk to Morgan" {time} 5000

:Noname_15174
if 
  $chemistDiscovered == 1
goto_if_false @Noname_15336
if 
  locate_char_any_means_3d $scplayer {x} 473.8 {y} -1143.4 {z} 68.5578 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_15329
if 
  $chemistPrompt == 0
goto_if_false @Noname_15295
print_help_string "Press T to talk to chemist"
$chemistPrompt = 1

:Noname_15295
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_15322
gosub @Noname_69654
wait 500

:Noname_15322
goto @Noname_15336

:Noname_15329
$chemistPrompt = 0

:Noname_15336
if 
  $morganFarmMoved == 1
goto_if_false @Noname_15934
if 
  $chemistSpawned == 0
goto_if_false @Noname_15427
if 
  locate_char_any_means_3d $scplayer {x} 1037.8 {y} -326.0 {z} 73.985 {xRadius} 80.0 {yRadius} 80.0 {zRadius} 35.0 {drawSphere} False
goto_if_false @Noname_15427
gosub @Noname_60449

:Noname_15427
if 
  locate_char_any_means_3d $scplayer {x} 1037.8 {y} -326.0 {z} 73.985 {xRadius} 1.8 {yRadius} 1.8 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_15920
if 
  $chemistPrompt == 0
goto_if_false @Noname_15529
print_help_string "Press T to talk to Morgan"
$chemistPrompt = 1

:Noname_15529
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_15913
$mayaMenu = 0
$slingCustomerMenu = 0
$nightCustomerMenu = 0
$farmWorkerMenu = 0
10@ = 0
$morganMenu = 1
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_15707
print_formatted_now "MORGAN LAB~n~1 Process opium~n~2 Buy 1 LSD $60~n~3 Collect LSD~n~4 Refine coca~n~N close" {time} 7000
goto @Noname_15908

:Noname_15707
if 
  $cocaLeaves > 0
goto_if_false @Noname_15828
print_formatted_now "MORGAN LAB~n~1 Process opium~n~2 Buy 1 LSD $60~n~3 Collect LSD~n~4 Refine coca~n~N close" {time} 7000
goto @Noname_15908

:Noname_15828
print_formatted_now "MORGAN LAB~n~1 Process opium~n~2 Buy 1 LSD $60~n~3 Collect LSD~n~N close" {time} 7000

:Noname_15908
wait 500

:Noname_15913
goto @Noname_15934

:Noname_15920
$chemistPrompt = 0
$morganMenu = 0

:Noname_15934
if 
  $morganMenu == 1
goto_if_false @Noname_16256
if 
  locate_char_any_means_3d $scplayer {x} 1037.8 {y} -326.0 {z} 73.985 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_16249
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_16027
gosub @Noname_60982
wait 500

:Noname_16027
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_16054
gosub @Noname_61318
wait 500

:Noname_16054
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_16081
gosub @Noname_61463
wait 500

:Noname_16081
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_16190
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_16128
gosub @Noname_61568
goto @Noname_16185

:Noname_16128
if 
  $cocaLeaves > 0
goto_if_false @Noname_16160
gosub @Noname_61568
goto @Noname_16185

:Noname_16160
print_string_now "Refine coca locked" {time} 3000

:Noname_16185
wait 500

:Noname_16190
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_16242
$morganMenu = 0
print_string_now "Closed Morgan menu" {time} 2000
wait 500

:Noname_16242
goto @Noname_16256

:Noname_16249
$morganMenu = 0

:Noname_16256
if 
  $mission8Unlocked == 1
goto_if_false @Noname_16299
if 
  $mission8Started == 0
goto_if_false @Noname_16299
gosub @Noname_55854

:Noname_16299
if 
  $mission8Started == 1
goto_if_false @Noname_16752
if 
  $mission8Complete == 0
goto_if_false @Noname_16752
if 
  $farmGuardsSpawned == 0
goto_if_false @Noname_16408
if 
  locate_char_any_means_3d $scplayer {x} 1044.4471 {y} -332.1785 {z} 73.985 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @Noname_16408
gosub @Noname_56309

:Noname_16408
if 
  $farmGuardsSpawned == 1
goto_if_false @Noname_16579
if 
  $farmMarker == -1
goto_if_false @Noname_16579
if 
  is_char_dead $farmGuard1
goto_if_false @Noname_16579
if 
  is_char_dead $farmGuard2
goto_if_false @Noname_16579
if 
  is_char_dead $farmGuard3
goto_if_false @Noname_16579
$farmMarker = add_sphere 1044.4471 {y} -332.1785 {z} 73.985 {radius} 1.5
delete_char $farmGuard1
delete_char $farmGuard2
delete_char $farmGuard3
$farmGuardsSpawned = 2
print_string_now "FARM CLEAR~n~Buy marker available" {time} 5000

:Noname_16579
if 
  $farmMarker <> -1
goto_if_false @Noname_16752
if 
  locate_char_any_means_3d $scplayer {x} 1044.4471 {y} -332.1785 {z} 73.985 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_16745
if 
  $farmPrompt == 0
goto_if_false @Noname_16711
print_help_string "Press Y to buy Hilltop Farm for $1000"
$farmPrompt = 1

:Noname_16711
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_16738
gosub @Noname_56822
wait 500

:Noname_16738
goto @Noname_16752

:Noname_16745
$farmPrompt = 0

:Noname_16752
if 
  $farmOwned == 1
goto_if_false @Noname_17641
if 
  $farmCrewSpawned == 0
goto_if_false @Noname_16843
if 
  locate_char_any_means_3d $scplayer {x} 1044.4471 {y} -332.1785 {z} 73.985 {xRadius} 140.0 {yRadius} 140.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @Noname_16843
gosub @Noname_57357

:Noname_16843
if 
  $farmPatriotSpawned == 0
goto_if_false @Noname_16923
if 
  locate_char_any_means_3d $scplayer {x} 1044.4471 {y} -332.1785 {z} 73.985 {xRadius} 140.0 {yRadius} 140.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @Noname_16916
gosub @Noname_57921

:Noname_16916
goto @Noname_16923

:Noname_16923
if 
  $route1UpgradeBought == 1
goto_if_false @Noname_17014
if 
  $farmDrugBoxesSpawned == 0
goto_if_false @Noname_17014
if 
  locate_char_any_means_3d $scplayer {x} 1044.4471 {y} -332.1785 {z} 73.985 {xRadius} 140.0 {yRadius} 140.0 {zRadius} 60.0 {drawSphere} False
goto_if_false @Noname_17014
gosub @Noname_57986

:Noname_17014
if 
  $farmCrewSpawned == 1
goto_if_false @Noname_17641
if 
  locate_char_any_means_3d $scplayer {x} 1041.8 {y} -329.2 {z} 73.985 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_17627
if 
  $farmWorkerPrompt == 0
goto_if_false @Noname_17140
print_help_string "Press T to talk to Hilltop crew"
$farmWorkerPrompt = 1

:Noname_17140
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_17620
freeze_char_position $farmWorker1 {state} False
freeze_char_position $farmWorker2 {state} False
wait 800
freeze_char_position $farmWorker1 {state} True
freeze_char_position $farmWorker2 {state} True
$mayaMenu = 0
$slingCustomerMenu = 0
$nightCustomerMenu = 0
$morganMenu = 0
10@ = 0
$farmWorkerMenu = 1
if 
  $mission9Started == 2
goto_if_false @Noname_17451
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_17365
print_formatted_now "HILLTOP FARM~n~1 AK 2 Poppy 3 Coca~n~4 Collect 5 Morgan~n~6 R1 7 Emp 8 Upg~n~N close" {time} 7000
goto @Noname_17444

:Noname_17365
print_formatted_now "HILLTOP FARM~n~1 AK 2 Poppy~n~4 Collect 5 Morgan~n~6 R1 7 Emp~n~N close" {time} 7000

:Noname_17444
goto @Noname_17615

:Noname_17451
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_17549
print_formatted_now "HILLTOP FARM~n~1 AK 2 Poppy 3 Coca~n~4 Collect 5 Morgan~n~N close" {time} 7000
goto @Noname_17615

:Noname_17549
print_formatted_now "HILLTOP FARM~n~1 AK 2 Poppy~n~4 Collect 5 Morgan~n~N close" {time} 7000

:Noname_17615
wait 500

:Noname_17620
goto @Noname_17641

:Noname_17627
$farmWorkerPrompt = 0
$farmWorkerMenu = 0

:Noname_17641
if 
  $farmWorkerMenu == 1
goto_if_false @Noname_18315
if 
  locate_char_any_means_3d $scplayer {x} 1041.8 {y} -329.2 {z} 73.985 {xRadius} 3.0 {yRadius} 3.0 {zRadius} 3.0 {drawSphere} False
goto_if_false @Noname_18308
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_17734
gosub @Noname_58296
wait 500

:Noname_17734
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_17761
gosub @Noname_58725
wait 500

:Noname_17761
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_17836
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_17808
gosub @Noname_58968
goto @Noname_17831

:Noname_17808
print_string_now "Coca rows locked" {time} 3000

:Noname_17831
wait 500

:Noname_17836
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_17863
gosub @Noname_59441
wait 500

:Noname_17863
if 
  is_key_just_pressed KeyCode.Num5
goto_if_false @Noname_17890
gosub @Noname_59848
wait 500

:Noname_17890
if 
  is_key_just_pressed KeyCode.Num6
goto_if_false @Noname_17980
if 
  $mission9Started == 2
goto_if_false @Noname_17937
gosub @Noname_61907
goto @Noname_17975

:Noname_17937
print_string_now "Finish Nightlife Slinging first" {time} 3000

:Noname_17975
wait 500

:Noname_17980
if 
  is_key_just_pressed KeyCode.Num7
goto_if_false @Noname_18070
if 
  $mission9Started == 2
goto_if_false @Noname_18027
gosub @Noname_64728
goto @Noname_18065

:Noname_18027
print_string_now "Finish Nightlife Slinging first" {time} 3000

:Noname_18065
wait 500

:Noname_18070
if 
  is_key_just_pressed KeyCode.Num8
goto_if_false @Noname_18251
if 
  $mission9Started == 2
goto_if_false @Noname_18208
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_18135
gosub @Noname_64284
goto @Noname_18201

:Noname_18135
if 
  $cocaLeaves > 0
goto_if_false @Noname_18167
gosub @Noname_64284
goto @Noname_18201

:Noname_18167
print_string_now "Unlock cocaine routes first" {time} 3000

:Noname_18201
goto @Noname_18246

:Noname_18208
print_string_now "Finish Nightlife Slinging first" {time} 3000

:Noname_18246
wait 500

:Noname_18251
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_18301
$farmWorkerMenu = 0
print_string_now "Closed farm menu" {time} 2000
wait 500

:Noname_18301
goto @Noname_18315

:Noname_18308
$farmWorkerMenu = 0

:Noname_18315
if 
  $mexicanContactSpawned == 1
goto_if_false @Noname_18557
if 
  $mexicanContactTalked == 0
goto_if_false @Noname_18557
if 
  $mexicanContactActorSpawned == 0
goto_if_false @Noname_18424
if 
  locate_char_any_means_3d $scplayer {x} 1692.0 {y} -1955.0 {z} 13.5 {xRadius} 120.0 {yRadius} 120.0 {zRadius} 40.0 {drawSphere} False
goto_if_false @Noname_18424
gosub @Noname_66865

:Noname_18424
if 
  locate_char_any_means_3d $scplayer {x} 1692.0 {y} -1955.0 {z} 13.5 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_18550
if 
  $mexicanPrompt == 0
goto_if_false @Noname_18516
print_help_string "Press T to talk"
$mexicanPrompt = 1

:Noname_18516
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_18543
gosub @Noname_66968
wait 500

:Noname_18543
goto @Noname_18557

:Noname_18550
$mexicanPrompt = 0

:Noname_18557
if 
  is_key_pressed KeyCode.Tab
goto_if_false @Noname_18626
if 
  is_key_just_pressed KeyCode.O
goto_if_false @Noname_18599
gosub @Noname_67434
wait 500

:Noname_18599
if 
  is_key_just_pressed KeyCode.K
goto_if_false @Noname_18626
gosub @Noname_68422
wait 500

:Noname_18626
if 
  $poppyPlanted == 1
goto_if_false @Noname_18980
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $poppyStart
if 
  16@ > 30000
goto_if_false @Noname_18714
if 
  $poppyStage == 1
goto_if_false @Noname_18714
set_object_scale $poppyPlant {scale} 0.25
$poppyStage = 2

:Noname_18714
if 
  16@ > 60000
goto_if_false @Noname_18828
if 
  $poppyStage == 2
goto_if_false @Noname_18828
set_object_scale $poppyPlant {scale} 0.4
$poppyReady = 1
$poppyStage = 3
$poppyBlip = add_blip_for_object $poppyPlant
change_blip_colour $poppyBlip {color} BlipColor.White
change_blip_display $poppyBlip {display} BlipDisplay.Both
print_string_now "Poppy ready to harvest" {time} 3000

:Noname_18828
if 
  $poppyReady == 1
goto_if_false @Noname_18980
if 
  locate_char_any_means_3d $scplayer {x} $poppyX {y} $poppyY {z} $poppyZ {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_18973
if 
  $poppyPrompt == 0
goto_if_false @Noname_18939
print_help_string "Harvest poppy. Press H"
$poppyPrompt = 1

:Noname_18939
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_18966
gosub @Noname_67778
wait 500

:Noname_18966
goto @Noname_18980

:Noname_18973
$poppyPrompt = 0

:Noname_18980
if 
  $cocaPlanted == 1
goto_if_false @Noname_19423
15@ = get_game_timer 
if 
  $cocaStart == 0
goto_if_false @Noname_19036
set_var_int_to_lvar_int $cocaStart = 15@
$cocaStart += 1

:Noname_19036
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $cocaStart
if 
  16@ < 0
goto_if_false @Noname_19085
set_var_int_to_lvar_int $cocaStart = 15@
16@ = 0

:Noname_19085
$cocaGrowTicks += 1
if 
  16@ > 40000
goto_if_false @Noname_19138
if 
  $cocaStage == 1
goto_if_false @Noname_19138
gosub @Noname_69062

:Noname_19138
if 
  $cocaGrowTicks > 2400
goto_if_false @Noname_19182
if 
  $cocaStage == 1
goto_if_false @Noname_19182
gosub @Noname_69062

:Noname_19182
if 
  16@ > 60000
goto_if_false @Noname_19228
if 
  $cocaStage < 3
goto_if_false @Noname_19228
gosub @Noname_69177

:Noname_19228
if 
  $cocaGrowTicks > 3600
goto_if_false @Noname_19272
if 
  $cocaStage < 3
goto_if_false @Noname_19272
gosub @Noname_69177

:Noname_19272
if 
  $cocaReady == 1
goto_if_false @Noname_19423
if 
  locate_char_any_means_3d $scplayer {x} $cocaX {y} $cocaY {z} $cocaZ {xRadius} 4.0 {yRadius} 4.0 {zRadius} 8.0 {drawSphere} False
goto_if_false @Noname_19416
if 
  $cocaPrompt == 0
goto_if_false @Noname_19382
print_help_string "Harvest coca. Press H"
$cocaPrompt = 1

:Noname_19382
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_19409
gosub @Noname_69332
wait 500

:Noname_19409
goto @Noname_19423

:Noname_19416
$cocaPrompt = 0

:Noname_19423
if 
  $workerSeeds > 0
goto_if_false @Noname_19555
if 
  $workerHarvestReady == 0
goto_if_false @Noname_19555
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $workerGrowStart
if 
  16@ > 120000
goto_if_false @Noname_19555
$workerHarvestReady = 1
set_var_int_to_var_int $workerHarvestGrams = $workerSeeds
$workerHarvestGrams *= 50
print_string_now "TYRELL~n~Worker cannabis ready" {time} 5000

:Noname_19555
if 
  $workerAkActive == 1
goto_if_false @Noname_19668
if 
  $workerAkReady == 0
goto_if_false @Noname_19668
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $workerAkStart
if 
  16@ > 300000
goto_if_false @Noname_19668
$workerAkReady = 1
print_string_now "TYRELL~n~AK-47 plant ready" {time} 5000

:Noname_19668
if 
  $farmCrewSpawned == 1
goto_if_false @Noname_19891
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_19729
if 
  $farmCocaAutoStarted == 0
goto_if_false @Noname_19729
gosub @Noname_58158

:Noname_19729
if 
  $farmHarvestReady == 0
goto_if_false @Noname_19891
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $farmGrowStart
if 
  16@ > 120000
goto_if_false @Noname_19891
$farmHarvestReady = 1
set_var_int_to_var_int $farmAkReadyGrams = $farmAkSeeds
$farmAkReadyGrams *= 75
set_var_int_to_var_int $farmOpiumReady = $farmPoppySeeds
$farmOpiumReady *= 40
set_var_int_to_var_int $farmCocaLeavesReady = $farmCocaSeeds
$farmCocaLeavesReady *= 45
set_var_int_to_var_int $farmCocaSeedsReady = $farmCocaSeeds
$farmCocaSeedsReady *= 2
print_string_now "HILLTOP FARM~n~Crew harvest ready" {time} 5000

:Noname_19891
if 
  $mission2AutoStart == 1
goto_if_false @Noname_19946
if 
  $mission2Started == 0
goto_if_false @Noname_19946
$mission2AutoStart = 0
wait 2000
gosub @Noname_43789

:Noname_19946
if 
  locate_char_any_means_3d $scplayer {x} 2467.4016 {y} -1755.2 {z} 13.0 {xRadius} 1.4 {yRadius} 1.4 {zRadius} 1.2 {drawSphere} False
goto_if_false @Noname_23354
if 
  6@ == 0
goto_if_false @Noname_20654
if 
  $mission7Started > 0
goto_if_false @Noname_20083
print_help_string "Supplier: Y seed pack, O buy 3 poppy seeds"
goto @Noname_20647

:Noname_20083
if 
  $supplierAkTalkUnlocked == 1
goto_if_false @Noname_20300
if 
  $supplierAkTalkDone == 0
goto_if_false @Noname_20169
print_help_string "Supplier: Y buy seed pack, T talk AK-47"
goto @Noname_20293

:Noname_20169
if 
  $mission3Unlocked == 1
goto_if_false @Noname_20244
print_help_string "Supplier: Y buy seed pack, T start Mission III"
goto @Noname_20293

:Noname_20244
print_help_string "Supplier: Press Y to buy 1 seed pack for $330"

:Noname_20293
goto @Noname_20647

:Noname_20300
if 
  $mission3Unlocked == 1
goto_if_false @Noname_20375
print_help_string "Supplier: Y buy seed pack, T start Mission III"
goto @Noname_20647

:Noname_20375
if 
  $mission2Ready == 2
goto_if_false @Noname_20598
if 
  $mission2Complete == 0
goto_if_false @Noname_20542
if 
  $mission2Started == 0
goto_if_false @Noname_20485
print_help_string "Supplier: Y buy seed pack, T start Mission II"
goto @Noname_20535

:Noname_20485
print_help_string "Mission II: Take the briefcase near the robber"

:Noname_20535
goto @Noname_20591

:Noname_20542
print_help_string "Supplier: Press Y to buy 1 seed pack for $330"

:Noname_20591
goto @Noname_20647

:Noname_20598
print_help_string "Supplier: Press Y to buy 1 seed pack for $330"

:Noname_20647
6@ = 1

:Noname_20654
if 
  is_key_just_pressed KeyCode.O
goto_if_false @Noname_20943
if 
  $mission7Started > 0
goto_if_false @Noname_20898
if 
  is_score_greater $player1 {money} 599
goto_if_false @Noname_20868
add_score $player1 {money} -600
$poppySeeds += 3
print_string_now "Bought 3 poppy seeds" {time} 3000
if 
  $mission7Started == 1
goto_if_false @Noname_20861
$mission7Started = 2
wait 2500
print_string_now "MISSION PASSED VII~n~Poppy Seeds" {time} 6000
wait 2500
print_string_now "Press TAB+O to plant poppy seeds" {time} 5000

:Noname_20861
goto @Noname_20891

:Noname_20868
print_string_now "Not enough money" {time} 3000

:Noname_20891
goto @Noname_20938

:Noname_20898
print_string_now "Poppy seeds are not available yet" {time} 3000

:Noname_20938
wait 500

:Noname_20943
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_21213
if 
  is_score_greater $player1 {money} 329
goto_if_false @Noname_21185
add_score $player1 {money} -330
8@ += 1
print_string_now "Bought 1 seed pack" {time} 3000
if 
  11@ == 1
goto_if_false @Noname_21178
do_fade 0 {direction} 1000
wait 1200
do_fade 1 {direction} 1000
wait 1200
11@ = 2
print_string_now "OBJECTIVE~n~Plant the seed pack somewhere hidden" {time} 5000
wait 2500
print_help_string "Press P to plant your seed pack. Avoid detection"

:Noname_21178
goto @Noname_21208

:Noname_21185
print_string_now "Not enough money" {time} 3000

:Noname_21208
wait 500

:Noname_21213
if 
  is_key_pressed KeyCode.M
goto_if_false @Noname_21975
if 
  $mission2Complete == 1
goto_if_false @Noname_21288
print_string_now "Mission II already completed" {time} 3000
goto @Noname_21970

:Noname_21288
if 
  $mission2Ready == 2
goto_if_false @Noname_21888
$mission2Unlocked = 1
if 
  $mission2Started == 0
goto_if_false @Noname_21827
$mission2Started = 1
do_fade 0 {direction} 1000
wait 1200
do_fade 1 {direction} 1000
wait 1200
print_string_now "MISSION II" {time} 5000
wait 2500
print_help_formatted "Supplier: Some Vagos hit my stash last night."
wait 3500
print_help_formatted "Supplier: Find the one holding my bag."
wait 3500
print_help_formatted "Supplier: Whatever else you find, keep it. I just want payback."
wait 4000
request_model #LSV3
request_model #COLT45
request_model #BRIEFCASE

:Noname_21574
  not has_model_loaded #LSV3
goto_if_false @Noname_21596
wait 0
goto @Noname_21574

:Noname_21596
  not has_model_loaded #COLT45
goto_if_false @Noname_21619
wait 0
goto @Noname_21596

:Noname_21619
  not has_model_loaded #BRIEFCASE
goto_if_false @Noname_21642
wait 0
goto @Noname_21619

:Noname_21642
$vagosEnemy = create_char PedType.CivMale {modelId} #LSV3 {x} 2788.3999 {y} -1614.2 {z} 10.9
$mission2EnemyCleaned = 0
set_char_heading $vagosEnemy {heading} 180.0
give_weapon_to_char $vagosEnemy {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $vagosEnemy {accuracy} 45
task_kill_char_on_foot $vagosEnemy {target} $scplayer
$missionBriefcase = create_object #BRIEFCASE {x} 2788.8999 {y} -1615.0 {z} 10.9
5@ = add_short_range_sprite_blip_for_coord 2788.8999 {y} -1615.0 {z} 10.9 {sprite} RadarSprite.Qmark
mark_model_as_no_longer_needed #LSV3
mark_model_as_no_longer_needed #COLT45
mark_model_as_no_longer_needed #BRIEFCASE
print_string_now "OBJECTIVE~n~Take the briefcase near the robber" {time} 5000
goto @Noname_21881

:Noname_21827
print_string_now "Mission II already started~n~Take the briefcase" {time} 3000

:Noname_21881
goto @Noname_21970

:Noname_21888
print_formatted_now "Mission II needs 2 harvested cannabis plants~n~Mission II progress:%d/2" {time} 4000 {args} $mission2Ready 

:Noname_21970
wait 1000

:Noname_21975
if 
  is_key_just_pressed KeyCode.T
goto_if_false @Noname_23347
if 
  $supplierAkTalkUnlocked == 1
goto_if_false @Noname_22810
if 
  $supplierAkTalkDone == 0
goto_if_false @Noname_22356
$supplierAkTalkDone = 1
print_help_formatted "CJ: That AK-47 strain is worth real money."
wait 3500
print_help_formatted "CJ: Where do I get more?"
wait 3500
print_help_formatted "Supplier: Heard about some grows in the hills north of Los Santos."
wait 4000
print_help_formatted "Supplier: Find the right people up there, and you'll find better seeds."
wait 4000
print_string_now "AK-47 lead discovered~n~The hills will be available in Mission III" {time} 6000
goto @Noname_22803

:Noname_22356
if 
  $mission3Unlocked == 1
goto_if_false @Noname_22766
$mission3Unlocked = 2
do_fade 0 {direction} 1000
wait 1200
do_fade 1 {direction} 1000
wait 1200
print_string_now "MISSION III" {time} 5000
wait 2500
print_help_formatted "CJ: I need something bigger than street grows."
wait 3500
print_help_formatted "Supplier: Then you need to leave Grove behind for a minute."
wait 4000
print_help_formatted "Supplier: There is an AK-47 grow hidden in the hills north of Los Santos."
wait 4500
print_help_formatted "Supplier: It is guarded. If you go, go ready."
wait 4000
print_string_now "LEAD DISCOVERED~n~Mission III begins in the hills" {time} 6000
wait 2000
gosub @Noname_44287
goto @Noname_22803

:Noname_22766
print_string_now "You already talked about AK-47" {time} 3000

:Noname_22803
goto @Noname_23342

:Noname_22810
if 
  $mission3Unlocked == 1
goto_if_false @Noname_23220
$mission3Unlocked = 2
do_fade 0 {direction} 1000
wait 1200
do_fade 1 {direction} 1000
wait 1200
print_string_now "MISSION III" {time} 5000
wait 2500
print_help_formatted "CJ: I need something bigger than street grows."
wait 3500
print_help_formatted "Supplier: Then you need to leave Grove behind for a minute."
wait 4000
print_help_formatted "Supplier: There is an AK-47 grow hidden in the hills north of Los Santos."
wait 4500
print_help_formatted "Supplier: It is guarded. If you go, go ready."
wait 4000
print_string_now "LEAD DISCOVERED~n~Mission III begins in the hills" {time} 6000
wait 2000
gosub @Noname_44287
goto @Noname_23342

:Noname_23220
if 
  $mission2Ready == 2
goto_if_false @Noname_23342
if 
  $mission2Complete == 0
goto_if_false @Noname_23342
if 
  $mission2Started == 0
goto_if_false @Noname_23288
gosub @Noname_43789
goto @Noname_23342

:Noname_23288
print_string_now "Mission II already started~n~Take the briefcase" {time} 3000

:Noname_23342
wait 500

:Noname_23347
goto @Noname_23361

:Noname_23354
6@ = 0

:Noname_23361
if 
  $mission2Started == 1
goto_if_false @Noname_23768
if 
  $mission2Complete == 0
goto_if_false @Noname_23768
if 
  $mission2EnemyCleaned == 0
goto_if_false @Noname_23438
if 
  is_char_dead $vagosEnemy
goto_if_false @Noname_23438
$mission2EnemyCleaned = 1

:Noname_23438
if 
  locate_char_any_means_3d $scplayer {x} 2788.8999 {y} -1615.0 {z} 10.9 {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_23768
$mission2Complete = 1
$mission2Ready = 0
$mission3Ready = 0
$mission3Unlocked = 0
if 
  5@ <> -1
goto_if_false @Noname_23544
remove_blip 5@
5@ = -1

:Noname_23544
delete_object $missionBriefcase
if 
  $mission2EnemyCleaned == 0
goto_if_false @Noname_23579
delete_char $vagosEnemy
$mission2EnemyCleaned = 1

:Noname_23579
$akSeedPacks += 1
8@ += 2
print_string_now "MISSION PASSED~n~Found 2 seed packs and 1 AK-47 seed pack" {time} 6000
wait 3000
print_string_now "Press TAB+P to plant AK-47 cannabis" {time} 5000
wait 3000
print_string_now "MISSION III PROGRESS~n~Harvest 3 more regular plants" {time} 5000

:Noname_23768
if 
  locate_char_any_means_3d $scplayer {x} 2305.7 {y} -1794.9 {z} 13.5468 {xRadius} 1.4 {yRadius} 1.4 {zRadius} 1.2 {drawSphere} False
goto_if_false @Noname_24477
if 
  7@ == 0
goto_if_false @Noname_23972
if 
  11@ == 4
goto_if_false @Noname_23914
print_help_string "Buyer: Press Y to sell marijuana and finish the job"
goto @Noname_23965

:Noname_23914
print_help_string "Buyer: Press Y to open sell menu, or N to leave"

:Noname_23965
7@ = 1

:Noname_23972
if 
  is_key_just_pressed KeyCode.Y
goto_if_false @Noname_24420
10@ = 1
if 
  $akWeedGrams > 0
goto_if_false @Noname_24336
if 
  $mission4Started == 1
goto_if_false @Noname_24248
if 
  $mission4Complete == 0
goto_if_false @Noname_24160
print_formatted_now "SELL MENU~n~1 Weed 1g $10~n~2 Weed 10g $100~n~3 Weed 20g $200~n~Mission IV: do not sell AK-47 yet" {time} 7000
goto @Noname_24241

:Noname_24160
print_formatted_now "SELL MENU~n~1 Weed1  2 Weed10  3 Weed20~n~4 AK1  5 AK10  6 AK20~n~N close" {time} 7000

:Noname_24241
goto @Noname_24329

:Noname_24248
print_formatted_now "SELL MENU~n~1 Weed1  2 Weed10  3 Weed20~n~4 AK1  5 AK10  6 AK20~n~N close" {time} 7000

:Noname_24329
goto @Noname_24415

:Noname_24336
print_formatted_now "SELL MENU~n~1 Weed 1g $10~n~2 Weed 10g $100~n~3 Weed 20g $200~n~N close" {time} 7000

:Noname_24415
wait 500

:Noname_24420
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_24470
10@ = 0
print_string_now "Closed sell menu" {time} 2000
wait 500

:Noname_24470
goto @Noname_24491

:Noname_24477
7@ = 0
10@ = 0

:Noname_24491
if 
  10@ == 1
goto_if_false @Noname_25915
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_24633
if 
  9@ > 0
goto_if_false @Noname_24606
9@ -= 1
add_score $player1 {money} 10
13@ += 1
14@ += 1
print_string_now "Sold 1g for $10" {time} 3000
gosub @Noname_76189
goto @Noname_24628

:Noname_24606
print_string_now "Not enough weed" {time} 3000

:Noname_24628
wait 500

:Noname_24633
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_24759
if 
  9@ > 9
goto_if_false @Noname_24732
9@ -= 10
add_score $player1 {money} 100
13@ += 10
14@ += 10
print_string_now "Sold 10g for $100" {time} 3000
gosub @Noname_76189
goto @Noname_24754

:Noname_24732
print_string_now "Not enough weed" {time} 3000

:Noname_24754
wait 500

:Noname_24759
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_24886
if 
  9@ > 19
goto_if_false @Noname_24859
9@ -= 20
add_score $player1 {money} 200
13@ += 20
14@ += 20
print_string_now "Sold 20g for $200" {time} 3000
gosub @Noname_76189
goto @Noname_24881

:Noname_24859
print_string_now "Not enough weed" {time} 3000

:Noname_24881
wait 500

:Noname_24886
if 
  $akWeedGrams > 0
goto_if_false @Noname_25915
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_25237
if 
  $mission4Started == 1
goto_if_false @Noname_25121
if 
  $mission4Complete == 0
goto_if_false @Noname_25003
print_string_now "MISSION IV~n~Do not sell AK-47 yet" {time} 4000
goto @Noname_25114

:Noname_25003
if 
  $akWeedGrams > 0
goto_if_false @Noname_25091
$akWeedGrams -= 1
add_score $player1 {money} 14
13@ += 1
14@ += 1
print_string_now "Sold 1g AK-47 for $14" {time} 3000
gosub @Noname_76486
goto @Noname_25114

:Noname_25091
print_string_now "Not enough AK-47" {time} 3000

:Noname_25114
goto @Noname_25232

:Noname_25121
if 
  $akWeedGrams > 0
goto_if_false @Noname_25209
$akWeedGrams -= 1
add_score $player1 {money} 14
13@ += 1
14@ += 1
print_string_now "Sold 1g AK-47 for $14" {time} 3000
gosub @Noname_76486
goto @Noname_25232

:Noname_25209
print_string_now "Not enough AK-47" {time} 3000

:Noname_25232
wait 500

:Noname_25237
if 
  is_key_just_pressed KeyCode.Num5
goto_if_false @Noname_25576
if 
  $mission4Started == 1
goto_if_false @Noname_25457
if 
  $mission4Complete == 0
goto_if_false @Noname_25336
print_string_now "MISSION IV~n~Do not sell AK-47 yet" {time} 4000
goto @Noname_25450

:Noname_25336
if 
  $akWeedGrams > 9
goto_if_false @Noname_25427
$akWeedGrams -= 10
add_score $player1 {money} 140
13@ += 10
14@ += 10
print_string_now "Sold 10g AK-47 for $140" {time} 3000
gosub @Noname_76486
goto @Noname_25450

:Noname_25427
print_string_now "Not enough AK-47" {time} 3000

:Noname_25450
goto @Noname_25571

:Noname_25457
if 
  $akWeedGrams > 9
goto_if_false @Noname_25548
$akWeedGrams -= 10
add_score $player1 {money} 140
13@ += 10
14@ += 10
print_string_now "Sold 10g AK-47 for $140" {time} 3000
gosub @Noname_76486
goto @Noname_25571

:Noname_25548
print_string_now "Not enough AK-47" {time} 3000

:Noname_25571
wait 500

:Noname_25576
if 
  is_key_just_pressed KeyCode.Num6
goto_if_false @Noname_25915
if 
  $mission4Started == 1
goto_if_false @Noname_25796
if 
  $mission4Complete == 0
goto_if_false @Noname_25675
print_string_now "MISSION IV~n~Do not sell AK-47 yet" {time} 4000
goto @Noname_25789

:Noname_25675
if 
  $akWeedGrams > 19
goto_if_false @Noname_25766
$akWeedGrams -= 20
add_score $player1 {money} 280
13@ += 20
14@ += 20
print_string_now "Sold 20g AK-47 for $280" {time} 3000
gosub @Noname_76486
goto @Noname_25789

:Noname_25766
print_string_now "Not enough AK-47" {time} 3000

:Noname_25789
goto @Noname_25910

:Noname_25796
if 
  $akWeedGrams > 19
goto_if_false @Noname_25887
$akWeedGrams -= 20
add_score $player1 {money} 280
13@ += 20
14@ += 20
print_string_now "Sold 20g AK-47 for $280" {time} 3000
gosub @Noname_76486
goto @Noname_25910

:Noname_25887
print_string_now "Not enough AK-47" {time} 3000

:Noname_25910
wait 500

:Noname_25915
if 
  13@ > 49
goto_if_false @Noname_25984
$drugHeat += 5
13@ -= 50
print_formatted_now "+5 HEAT~n~Current heat: %d" {time} 4000 {args} $drugHeat 

:Noname_25984
if 
  $akFirstSaleCallPending == 1
goto_if_false @Noname_26337
if 
  $akFirstSaleCallShown == 0
goto_if_false @Noname_26337
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $akSaleCallStart
if 
  16@ > 20000
goto_if_false @Noname_26337
$akFirstSaleCallShown = 1
$akFirstSaleCallPending = 0
print_string_now "PHONE CALL" {time} 3000
wait 2500
print_help_formatted "Buyer: That weed you sold me... that's AK-47."
wait 3500
print_help_formatted "Buyer: People will pay better money for that kind of smoke."
wait 3500
if 
  $akWeedGrams > 0
goto_if_false @Noname_26291
print_help_formatted "Buyer: If you still got some, head to the beach."
wait 3500

:Noname_26291
$supplierAkTalkUnlocked = 1
print_string_now "Talk to the supplier about AK-47" {time} 5000

:Noname_26337
if 
  $harvestedCrops > 1
goto_if_false @Noname_26472
if 
  $mission2Unlocked == 0
goto_if_false @Noname_26472
$mission2Unlocked = 1
$mission2Ready = 2
$mission2Started = 0
$mission2Complete = 0
18@ = 2
print_string_now "MISSION II AVAILABLE~n~Return to the supplier and press T" {time} 6000

:Noname_26472
if 
  is_key_just_pressed KeyCode.P
goto_if_false @Noname_26642
if 
  is_key_pressed KeyCode.Tab
goto_if_false @Noname_26576
if 
  $akSeedPacks > 0
goto_if_false @Noname_26534
gosub @Noname_73176
goto @Noname_26569

:Noname_26534
print_string_now "You have no AK-47 seed packs" {time} 3000

:Noname_26569
goto @Noname_26637

:Noname_26576
if 
  8@ > 0
goto_if_false @Noname_26608
gosub @Noname_72493
goto @Noname_26637

:Noname_26608
print_string_now "You have no seed packs" {time} 3000

:Noname_26637
wait 500

:Noname_26642
if 
  $planted1 == 1
goto_if_false @Noname_27193
if 
  $plantReady1 == 0
goto_if_false @Noname_27038
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $plantStart1
if 
  16@ > 20000
goto_if_false @Noname_26798
if 
  $growStage1 == 0
goto_if_false @Noname_26798
request_model #GRASSPLANT

:Noname_26736
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_26759
wait 0
goto @Noname_26736

:Noname_26759
$weedPlant1 = create_object #GRASSPLANT {x} $plant1X {y} $plant1Y {z} $plant1Z
set_object_scale $weedPlant1 {scale} 0.08
mark_model_as_no_longer_needed #GRASSPLANT
$growStage1 = 1

:Noname_26798
if 
  16@ > 40000
goto_if_false @Noname_26889
if 
  $growStage1 == 1
goto_if_false @Noname_26889
if 
  $plantType1 == 2
goto_if_false @Noname_26872
set_object_scale $weedPlant1 {scale} 0.35
goto @Noname_26882

:Noname_26872
set_object_scale $weedPlant1 {scale} 0.25

:Noname_26882
$growStage1 = 2

:Noname_26889
if 
  16@ > 60000
goto_if_false @Noname_27038
if 
  $growStage1 == 2
goto_if_false @Noname_27038
if 
  $plantType1 == 2
goto_if_false @Noname_26963
set_object_scale $weedPlant1 {scale} 0.6
goto @Noname_26973

:Noname_26963
set_object_scale $weedPlant1 {scale} 0.5

:Noname_26973
$growStage1 = 3
$plantReady1 = 1
$plantBlip1 = add_blip_for_object $weedPlant1
change_blip_colour $plantBlip1 {color} BlipColor.White
change_blip_display $plantBlip1 {display} BlipDisplay.Both
print_string_now "Plant ready to harvest" {time} 3000

:Noname_27038
if 
  $plantReady1 == 1
goto_if_false @Noname_27193
if 
  locate_char_any_means_3d $scplayer {x} $plant1X {y} $plant1Y {z} $plant1Z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_27186
if 
  $harvestPrompt1 == 0
goto_if_false @Noname_27152
print_help_string "Harvest possible. Press H"
$harvestPrompt1 = 1

:Noname_27152
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_27179
gosub @Noname_73705
wait 500

:Noname_27179
goto @Noname_27193

:Noname_27186
$harvestPrompt1 = 0

:Noname_27193
if 
  $planted2 == 1
goto_if_false @Noname_27744
if 
  $plantReady2 == 0
goto_if_false @Noname_27589
set_lvar_int_to_lvar_int 16@ = 15@
sub_int_var_from_int_lvar 16@ -= $plantStart2
if 
  16@ > 20000
goto_if_false @Noname_27349
if 
  $growStage2 == 0
goto_if_false @Noname_27349
request_model #GRASSPLANT

:Noname_27287
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_27310
wait 0
goto @Noname_27287

:Noname_27310
$weedPlant2 = create_object #GRASSPLANT {x} $plant2X {y} $plant2Y {z} $plant2Z
set_object_scale $weedPlant2 {scale} 0.08
mark_model_as_no_longer_needed #GRASSPLANT
$growStage2 = 1

:Noname_27349
if 
  16@ > 40000
goto_if_false @Noname_27440
if 
  $growStage2 == 1
goto_if_false @Noname_27440
if 
  $plantType2 == 2
goto_if_false @Noname_27423
set_object_scale $weedPlant2 {scale} 0.35
goto @Noname_27433

:Noname_27423
set_object_scale $weedPlant2 {scale} 0.25

:Noname_27433
$growStage2 = 2

:Noname_27440
if 
  16@ > 60000
goto_if_false @Noname_27589
if 
  $growStage2 == 2
goto_if_false @Noname_27589
if 
  $plantType2 == 2
goto_if_false @Noname_27514
set_object_scale $weedPlant2 {scale} 0.6
goto @Noname_27524

:Noname_27514
set_object_scale $weedPlant2 {scale} 0.5

:Noname_27524
$growStage2 = 3
$plantReady2 = 1
$plantBlip2 = add_blip_for_object $weedPlant2
change_blip_colour $plantBlip2 {color} BlipColor.White
change_blip_display $plantBlip2 {display} BlipDisplay.Both
print_string_now "Plant ready to harvest" {time} 3000

:Noname_27589
if 
  $plantReady2 == 1
goto_if_false @Noname_27744
if 
  locate_char_any_means_3d $scplayer {x} $plant2X {y} $plant2Y {z} $plant2Z {xRadius} 2.0 {yRadius} 2.0 {zRadius} 2.0 {drawSphere} False
goto_if_false @Noname_27737
if 
  $harvestPrompt2 == 0
goto_if_false @Noname_27703
print_help_string "Harvest possible. Press H"
$harvestPrompt2 = 1

:Noname_27703
if 
  is_key_just_pressed KeyCode.H
goto_if_false @Noname_27730
gosub @Noname_74947
wait 500

:Noname_27730
goto @Noname_27744

:Noname_27737
$harvestPrompt2 = 0

:Noname_27744
goto @Noname_2664

:Noname_27751
8@ = 0
9@ = 0
11@ = 1
12@ = 0
4@ = 0
14@ = 0
18@ = 1
$harvestedCrops = 0
$regularHarvestedGrams = 0
$drugHeat = 0
$slingingRepBeach = 0
$nightlifeRep = 0
$slingDeals = 0
$akSeedPacks = 0
$akWeedGrams = 0
$ecstasyPills = 0
$poppySeeds = 0
$opiumGrams = 0
$heroinGrams = 0
$lsdTabs = 0
$mushroomPacks = 0
$mysterySeeds = 0
$cocaSeeds = 0
$cocaLeaves = 0
$cocaineGrams = 0
$mission2Unlocked = 0
$mission2Started = 0
$mission2Ready = 0
$mission2Complete = 0
$mission2AutoStart = 0
$mission2EnemyCleaned = 0
$mission3Unlocked = 0
$mission3Started = 0
$mission3Ready = 0
$mission3Harvested = 0
$mission3PhoneDone = 0
$mission4Started = 0
$mission4AkHarvested = 0
$mission4Complete = 0
$mission5Started = 0
$mission5CallDone = 0
$mission6Started = 0
$mission6SoldGrams = 0
$mission7Started = 0
$mission8Unlocked = 0
$mission8Started = 0
$mission8Complete = 0
$mission9Started = 0
$mission9Sales = 0
$slingingUnlocked = 0
$chemistUnlocked = 0
$chemistDiscovered = 0
$ecstasyDealerDeals = 0
$ecstasyDealerStage = 0
$mayaUnlocked = 0
$mayaIntroSpawned = 0
$mayaObjectiveStarted = 0
$nightlifeSlingingUnlocked = 0
$growhouseOwned = 0
$growhouseTyrellCallDone = 0
$growhouseSecurityBought = 0
$farmOwned = 0
$tyrellCrewSpawned = 0
$workerSeeds = 0
$workerHarvestReady = 0
$workerHarvestGrams = 0
$workerAkActive = 0
$farmCrewSpawned = 0
$farmAkSeeds = 0
$farmPoppySeeds = 0
$farmCocaSeeds = 0
$farmHarvestReady = 0
$morganFarmMoved = 0
$morganProcessDeals = 0
$morganLsdReady = 0
$empirePhaseUnlocked = 0
$empireSupplierCallDone = 0
$mexicanContactTalked = 0
$cocaineBreakthroughDone = 0
$route1CocaineDone = 0
$route1UpgradeBought = 0
$route1TrustedBonus = 0
$myronIntroCallDone = 0
$myronPhoneUnlocked = 0
$myronPhoneComplete = 0
$myronPrompt = 0
$myronSupplierCallDone = 0
$smuggleActive = 0
$smugglePrompt = 0
$smuggleRoute = 0
$smuggleStage = 0
$smuggleCargoType = 0
$mission3ContactSpawned = 0
$mayaIntroActorSpawned = 0
$mexicanContactActorSpawned = 0
$slingCustomerActive = 0
$nightCustomerActive = 0
$slingCustomerPrompt = 0
$nightCustomerPrompt = 0
$ecstasyDealerPrompt = 0
$mayaPrompt = 0
$chemistPrompt = 0
$farmWorkerPrompt = 0
$tyrellPrompt = 0
10@ = 0
$mayaMenu = 0
$morganMenu = 0
$farmWorkerMenu = 0
$tyrellMenu = 0
$slingCustomerMenu = 0
$nightCustomerMenu = 0
return 

:Noname_28530
print_string_now "WRITING DRUG LEDGER" {time} 2000
wait 500
gosub @Noname_41343
$dbSaveMoney = store_score $player1
  write_int_to_ini_file 1 {path} "cleo\drug_business_ledger.ini" {section} "Meta" {key} "has_save"
  write_int_to_ini_file $dbSaveMoney {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "money"
  write_int_to_ini_file 8@ {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "seed_packs"
  write_int_to_ini_file 9@ {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "weed_grams"
  write_int_to_ini_file $akSeedPacks {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "ak_seed_packs"
  write_int_to_ini_file $akWeedGrams {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "ak_grams"
  write_int_to_ini_file $ecstasyPills {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "ecstasy"
  write_int_to_ini_file $poppySeeds {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "poppy_seeds"
  write_int_to_ini_file $opiumGrams {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "opium"
  write_int_to_ini_file $heroinGrams {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "heroin"
  write_int_to_ini_file $lsdTabs {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "lsd"
  write_int_to_ini_file $mushroomPacks {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "mushrooms"
  write_int_to_ini_file $mysterySeeds {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "mystery_seeds"
  write_int_to_ini_file $cocaSeeds {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "coca_seeds"
  write_int_to_ini_file $cocaLeaves {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "coca_leaves"
  write_int_to_ini_file $cocaineGrams {path} "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "cocaine"
  write_int_to_ini_file $drugHeat {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "heat"
  write_int_to_ini_file $slingingRepBeach {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "beach_rep"
  write_int_to_ini_file $nightlifeRep {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "nightlife_rep"
  write_int_to_ini_file 14@ {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "total_sold"
  write_int_to_ini_file $slingDeals {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "sling_deals"
  write_int_to_ini_file $harvestedCrops {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "harvested_crops"
  write_int_to_ini_file $regularHarvestedGrams {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "regular_harvested"
  write_int_to_ini_file 18@ {path} "cleo\drug_business_ledger.ini" {section} "Status" {key} "max_plants"
  write_int_to_ini_file 11@ {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission_stage"
  write_int_to_ini_file 12@ {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "first_sale_text_shown"
  write_int_to_ini_file 4@ {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "buyer_discovered"
  write_int_to_ini_file $mission2Unlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_unlocked"
  write_int_to_ini_file $mission2Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_started"
  write_int_to_ini_file $mission2Ready {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_ready"
  write_int_to_ini_file $mission2Complete {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_complete"
  write_int_to_ini_file $mission3Unlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_unlocked"
  write_int_to_ini_file $mission3Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_started"
  write_int_to_ini_file $mission3Ready {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_ready"
  write_int_to_ini_file $mission3Harvested {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_harvested"
  write_int_to_ini_file $mission3PhoneDone {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_phone_done"
  write_int_to_ini_file $mission4Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission4_started"
  write_int_to_ini_file $mission4AkHarvested {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission4_ak_harvested"
  write_int_to_ini_file $mission4Complete {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission4_complete"
  write_int_to_ini_file $mission5Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission5_started"
  write_int_to_ini_file $mission5CallDone {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission5_call_done"
  write_int_to_ini_file $mission6Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission6_started"
  write_int_to_ini_file $mission6SoldGrams {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission6_sold"
  write_int_to_ini_file $mission7Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission7_started"
  write_int_to_ini_file $isaacDiscovered {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "isaac_discovered"
  write_int_to_ini_file $mission8Unlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission8_unlocked"
  write_int_to_ini_file $mission8Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission8_started"
  write_int_to_ini_file $mission8Complete {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission8_complete"
  write_int_to_ini_file $mission9Started {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission9_started"
  write_int_to_ini_file $mission9Sales {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission9_sales"
  write_int_to_ini_file $slingingUnlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "slinging_unlocked"
  write_int_to_ini_file $chemistUnlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "chemist_unlocked"
  write_int_to_ini_file $chemistDiscovered {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "chemist_discovered"
  write_int_to_ini_file $ecstasyDealerDeals {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "dealer_deals"
  write_int_to_ini_file $ecstasyDealerStage {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "dealer_stage"
  write_int_to_ini_file $mayaUnlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "maya_unlocked"
  write_int_to_ini_file $mayaIntroSpawned {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "maya_intro_spawned"
  write_int_to_ini_file $mayaObjectiveStarted {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "maya_objective_started"
  write_int_to_ini_file $nightlifeSlingingUnlocked {path} "cleo\drug_business_ledger.ini" {section} "Progress" {key} "nightlife_unlocked"
  write_int_to_ini_file $growhouseOwned {path} "cleo\drug_business_ledger.ini" {section} "Properties" {key} "growhouse_owned"
  write_int_to_ini_file $growhouseTyrellCallDone {path} "cleo\drug_business_ledger.ini" {section} "Properties" {key} "growhouse_tyrell_call_done"
  write_int_to_ini_file $growhouseSecurityBought {path} "cleo\drug_business_ledger.ini" {section} "Properties" {key} "growhouse_security_bought"
  write_int_to_ini_file $farmOwned {path} "cleo\drug_business_ledger.ini" {section} "Properties" {key} "farm_owned"
  write_int_to_ini_file $tyrellCrewSpawned {path} "cleo\drug_business_ledger.ini" {section} "Crew" {key} "tyrell_spawned"
  write_int_to_ini_file $workerSeeds {path} "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_seeds"
  write_int_to_ini_file $workerHarvestReady {path} "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_harvest_ready"
  write_int_to_ini_file $workerHarvestGrams {path} "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_harvest_grams"
  write_int_to_ini_file $workerAkActive {path} "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_ak_active"
  write_int_to_ini_file $farmCrewSpawned {path} "cleo\drug_business_ledger.ini" {section} "Farm" {key} "crew_spawned"
  write_int_to_ini_file $farmAkSeeds {path} "cleo\drug_business_ledger.ini" {section} "Farm" {key} "ak_seeds"
  write_int_to_ini_file $farmPoppySeeds {path} "cleo\drug_business_ledger.ini" {section} "Farm" {key} "poppy_seeds"
  write_int_to_ini_file $farmCocaSeeds {path} "cleo\drug_business_ledger.ini" {section} "Farm" {key} "coca_seeds"
  write_int_to_ini_file $farmHarvestReady {path} "cleo\drug_business_ledger.ini" {section} "Farm" {key} "harvest_ready"
  write_int_to_ini_file $morganFarmMoved {path} "cleo\drug_business_ledger.ini" {section} "Lab" {key} "morgan_moved"
  write_int_to_ini_file $morganProcessDeals {path} "cleo\drug_business_ledger.ini" {section} "Lab" {key} "process_deals"
  write_int_to_ini_file $morganLsdReady {path} "cleo\drug_business_ledger.ini" {section} "Lab" {key} "lsd_ready"
  write_int_to_ini_file $empirePhaseUnlocked {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "empire_unlocked"
  write_int_to_ini_file $empireSupplierCallDone {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "empire_supplier_call_done"
  write_int_to_ini_file $mexicanContactTalked {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "mexican_contact_done"
  write_int_to_ini_file $cocaineBreakthroughDone {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "cocaine_breakthrough"
  write_int_to_ini_file $route1CocaineDone {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "route1_cocaine_done"
  write_int_to_ini_file $route1UpgradeBought {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "route1_upgrade_bought"
  write_int_to_ini_file $route1TrustedBonus {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "route1_trusted_bonus"
  write_int_to_ini_file $myronIntroCallDone {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_intro_done"
  write_int_to_ini_file $myronPhoneUnlocked {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_phone_unlocked"
  write_int_to_ini_file $myronPhoneComplete {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_phone_complete"
  write_int_to_ini_file $myronSupplierCallDone {path} "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_supplier_call_done"
$dbSaveSlotUsed = 1
print_formatted_now "DRUG LEDGER SAVED~n~Progress written to CLEO file" {time} 5000
return 

:Noname_34004
print_string_now "READING DRUG LEDGER" {time} 2000
wait 500
  $dbSaveSlotUsed = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Meta" {key} "has_save"
if 
  $dbSaveSlotUsed == 1
goto_if_false @Noname_40613
print_string_now "DRUG LEDGER FOUND~n~Rebuilding empire state" {time} 3000
wait 2000
gosub @Noname_40665
gosub @Noname_27751
$dbSaveSlotUsed = 1
if 
  $mission2Started == 1
goto_if_false @Noname_34229
if 
  $mission2EnemyCleaned == 0
goto_if_false @Noname_34229
delete_char $vagosEnemy
$mission2EnemyCleaned = 1

:Noname_34229
if 
  $hillGuardsSpawned == 1
goto_if_false @Noname_34274
delete_char $hillGuard1
delete_char $hillGuard2
delete_char $hillGuard3
delete_char $hillGuard4
$hillGuardsSpawned = 0

:Noname_34274
if 
  $farmGuardsSpawned == 1
goto_if_false @Noname_34314
delete_char $farmGuard1
delete_char $farmGuard2
delete_char $farmGuard3
$farmGuardsSpawned = 0

:Noname_34314
if 
  $tyrellCrewSpawned == 1
goto_if_false @Noname_34372
delete_char $tyrell
delete_char $groveWorker
if 
  $workerAkActive == 1
goto_if_false @Noname_34365
delete_object $workerAkPlant

:Noname_34365
$tyrellCrewSpawned = 0

:Noname_34372
if 
  $farmCrewSpawned == 1
goto_if_false @Noname_34432
delete_char $farmWorker1
delete_char $farmWorker2
delete_object $farmPoppyPlant
delete_object $farmPoppyPlant2
delete_object $farmPoppyPlant3
delete_object $farmPoppyPlant4
delete_object $farmAkPlant
$farmCrewSpawned = 0

:Noname_34432
  $dbSaveMoney = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "money"
if 
  $dbSaveMoney > 0
goto_if_false @Noname_34532
$dbSaveCurrentMoney = store_score $player1
$dbSaveCurrentMoney *= -1
add_score $player1 {money} $dbSaveCurrentMoney
add_score $player1 {money} $dbSaveMoney

:Noname_34532
  8@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "seed_packs"
  9@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "weed_grams"
  $akSeedPacks = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "ak_seed_packs"
  $akWeedGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "ak_grams"
  $ecstasyPills = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "ecstasy"
  $poppySeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "poppy_seeds"
  $opiumGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "opium"
  $heroinGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "heroin"
  $lsdTabs = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "lsd"
  $mushroomPacks = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "mushrooms"
  $mysterySeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "mystery_seeds"
  $cocaSeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "coca_seeds"
  $cocaLeaves = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "coca_leaves"
  $cocaineGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Inventory" {key} "cocaine"
  $drugHeat = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "heat"
  $slingingRepBeach = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "beach_rep"
  $nightlifeRep = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "nightlife_rep"
  14@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "total_sold"
  $slingDeals = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "sling_deals"
  $harvestedCrops = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "harvested_crops"
  $regularHarvestedGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "regular_harvested"
  18@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Status" {key} "max_plants"
  11@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission_stage"
  12@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "first_sale_text_shown"
  4@ = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "buyer_discovered"
  $mission2Unlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_unlocked"
  $mission2Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_started"
  $mission2Ready = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_ready"
  $mission2Complete = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission2_complete"
  $mission3Unlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_unlocked"
  $mission3Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_started"
  $mission3Ready = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_ready"
  $mission3Harvested = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_harvested"
  $mission3PhoneDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission3_phone_done"
  $mission4Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission4_started"
  $mission4AkHarvested = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission4_ak_harvested"
  $mission4Complete = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission4_complete"
  $mission5Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission5_started"
  $mission5CallDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission5_call_done"
  $mission6Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission6_started"
  $mission6SoldGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission6_sold"
  $mission7Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission7_started"
  $isaacDiscovered = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "isaac_discovered"
  $mission8Unlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission8_unlocked"
  $mission8Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission8_started"
  $mission8Complete = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission8_complete"
  $mission9Started = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission9_started"
  $mission9Sales = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "mission9_sales"
  $slingingUnlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "slinging_unlocked"
  $chemistUnlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "chemist_unlocked"
  $chemistDiscovered = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "chemist_discovered"
  $ecstasyDealerDeals = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "dealer_deals"
  $ecstasyDealerStage = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "dealer_stage"
  $mayaUnlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "maya_unlocked"
  $mayaIntroSpawned = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "maya_intro_spawned"
  $mayaObjectiveStarted = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "maya_objective_started"
  $nightlifeSlingingUnlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Progress" {key} "nightlife_unlocked"
  $growhouseOwned = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Properties" {key} "growhouse_owned"
  $growhouseTyrellCallDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Properties" {key} "growhouse_tyrell_call_done"
  $growhouseSecurityBought = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Properties" {key} "growhouse_security_bought"
  $farmOwned = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Properties" {key} "farm_owned"
  $tyrellCrewSpawned = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Crew" {key} "tyrell_spawned"
  $workerSeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_seeds"
  $workerHarvestReady = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_harvest_ready"
  $workerHarvestGrams = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_harvest_grams"
  $workerAkActive = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Crew" {key} "worker_ak_active"
  $farmCrewSpawned = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Farm" {key} "crew_spawned"
  $farmAkSeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Farm" {key} "ak_seeds"
  $farmPoppySeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Farm" {key} "poppy_seeds"
  $farmCocaSeeds = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Farm" {key} "coca_seeds"
  $farmHarvestReady = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Farm" {key} "harvest_ready"
  $morganFarmMoved = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Lab" {key} "morgan_moved"
  $morganProcessDeals = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Lab" {key} "process_deals"
  $morganLsdReady = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Lab" {key} "lsd_ready"
  $empirePhaseUnlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "empire_unlocked"
  $empireSupplierCallDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "empire_supplier_call_done"
  $mexicanContactTalked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "mexican_contact_done"
  $cocaineBreakthroughDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "cocaine_breakthrough"
  $route1CocaineDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "route1_cocaine_done"
  $route1UpgradeBought = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "route1_upgrade_bought"
  $route1TrustedBonus = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "route1_trusted_bonus"
  $myronIntroCallDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_intro_done"
  $myronPhoneUnlocked = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_phone_unlocked"
  $myronPhoneComplete = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_phone_complete"
  $myronSupplierCallDone = read_int_from_ini_file "cleo\drug_business_ledger.ini" {section} "Empire" {key} "myron_supplier_call_done"
gosub @Noname_41343
$smuggleActive = 0
$smugglePrompt = 0
$smuggleRoute = 0
$smuggleStage = 0
$smuggleCargoType = 0
$mission2AutoStart = 0
$mission3ContactSpawned = 0
$mayaIntroActorSpawned = 0
$mexicanContactActorSpawned = 0
$slingCustomerActive = 0
$nightCustomerActive = 0
$slingCustomerPrompt = 0
$nightCustomerPrompt = 0
$ecstasyDealerPrompt = 0
$mayaPrompt = 0
$chemistPrompt = 0
$farmWorkerPrompt = 0
$tyrellPrompt = 0
if 
  $mission3Ready > 0
goto_if_false @Noname_39950
$mission2Complete = 1

:Noname_39950
if 
  $mission4Complete == 1
goto_if_false @Noname_40003
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission4Started = 1

:Noname_40003
if 
  $slingingUnlocked == 1
goto_if_false @Noname_40077
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission4Complete = 1
$mission4Started = 1
$mission5Started = 1
$mission5CallDone = 1

:Noname_40077
if 
  $mission8Complete == 1
goto_if_false @Noname_40172
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission4Complete = 1
$mission4Started = 1
$mission5Started = 1
$mission5CallDone = 1
$slingingUnlocked = 1
$mission8Started = 2
$mission8Unlocked = 2

:Noname_40172
if 
  $farmOwned == 1
goto_if_false @Noname_40281
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission4Complete = 1
$mission4Started = 1
$mission5Started = 1
$mission5CallDone = 1
$slingingUnlocked = 1
$mission8Complete = 1
$mission8Started = 2
$mission8Unlocked = 2
$farmGuardsSpawned = 2

:Noname_40281
if 
  $cocaineGrams > 0
goto_if_false @Noname_40306
$cocaineBreakthroughDone = 1

:Noname_40306
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_40443
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission4Complete = 1
$mission4Started = 1
$mission5Started = 1
$mission5CallDone = 1
$slingingUnlocked = 1
$mission8Complete = 1
$mission8Started = 2
$mission8Unlocked = 2
$mayaUnlocked = 1
$mayaIntroSpawned = 2
$mayaObjectiveStarted = 2
$nightlifeSlingingUnlocked = 1
$empirePhaseUnlocked = 1

:Noname_40443
if 
  $mission2Complete == 1
goto_if_false @Noname_40489
$mission2Unlocked = 1
$mission2Started = 2
$mission2Ready = 0
$mission2EnemyCleaned = 1

:Noname_40489
10@ = 0
$mayaMenu = 0
$morganMenu = 0
$farmWorkerMenu = 0
$tyrellMenu = 0
$slingCustomerMenu = 0
$nightCustomerMenu = 0
gosub @Noname_42708
print_formatted_now "DRUG LEDGER LOADED~n~Progress restored from CLEO file" {time} 5000
goto @Noname_40661

:Noname_40613
gosub @Noname_40665
gosub @Noname_27751
gosub @Noname_42708
print_string_now "NO DRUG LEDGER FOUND" {time} 3000

:Noname_40661
return 
return 

:Noname_40665
10@ = 0
$mayaMenu = 0
$morganMenu = 0
$farmWorkerMenu = 0
$tyrellMenu = 0
$slingCustomerMenu = 0
$nightCustomerMenu = 0
if 
  $slingCustomerActive == 1
goto_if_false @Noname_40737
delete_char $slingCustomer

:Noname_40737
if 
  $nightCustomerActive == 1
goto_if_false @Noname_40760
delete_char $nightCustomer

:Noname_40760
if 
  $mayaIntroActorSpawned == 1
goto_if_false @Noname_40783
delete_char $maya

:Noname_40783
if 
  $isaacSpawned == 1
goto_if_false @Noname_40806
delete_char $isaac

:Noname_40806
if 
  $ecstasyDealerSpawned == 1
goto_if_false @Noname_40829
delete_char $ecstasyDealer

:Noname_40829
if 
  $chemistSpawned == 1
goto_if_false @Noname_40885
delete_char $chemist
if 
  $morganFarmMoved == 1
goto_if_false @Noname_40885
delete_object $labTable
delete_object $labPack1
delete_object $labPack2

:Noname_40885
if 
  $growhouseSecuritySpawned == 1
goto_if_false @Noname_40908
delete_char $growhouseSecurityGuard

:Noname_40908
if 
  $smuggleActive == 1
goto_if_false @Noname_40931
delete_car $smuggleTruck

:Noname_40931
$smuggleActive = 0
$smugglePrompt = 0
$smuggleRoute = 0
$smuggleStage = 0
$smuggleCargoType = 0
$slingCustomerActive = 0
$nightCustomerActive = 0
$mayaIntroActorSpawned = 0
$isaacSpawned = 0
$ecstasyDealerSpawned = 0
$chemistSpawned = 0
$growhouseSecuritySpawned = 0
$slingCustomerPrompt = 0
$nightCustomerPrompt = 0
$ecstasyDealerPrompt = 0
$mayaPrompt = 0
$chemistPrompt = 0
$farmWorkerPrompt = 0
$tyrellPrompt = 0
$mission2AutoStart = 0
if 
  5@ <> -1
goto_if_false @Noname_41101
remove_blip 5@
5@ = -1

:Noname_41101
if 
  $slingCustomerBlip <> -1
goto_if_false @Noname_41131
remove_blip $slingCustomerBlip
$slingCustomerBlip = -1

:Noname_41131
if 
  $nightCustomerBlip <> -1
goto_if_false @Noname_41161
remove_blip $nightCustomerBlip
$nightCustomerBlip = -1

:Noname_41161
if 
  $smuggleBlip <> -1
goto_if_false @Noname_41191
remove_blip $smuggleBlip
$smuggleBlip = -1

:Noname_41191
if 
  $slingCustomerMarker <> -1
goto_if_false @Noname_41221
remove_sphere $slingCustomerMarker
$slingCustomerMarker = -1

:Noname_41221
if 
  $nightCustomerMarker <> -1
goto_if_false @Noname_41251
remove_sphere $nightCustomerMarker
$nightCustomerMarker = -1

:Noname_41251
if 
  $isaacMarker <> -1
goto_if_false @Noname_41281
remove_sphere $isaacMarker
$isaacMarker = -1

:Noname_41281
if 
  $mayaMarker <> -1
goto_if_false @Noname_41311
remove_sphere $mayaMarker
$mayaMarker = -1

:Noname_41311
if 
  $smuggleMarker <> -1
goto_if_false @Noname_41341
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_41341
return 

:Noname_41343
if 
  $akSeedPacks > 0
goto_if_false @Noname_41368
$mission2Complete = 1

:Noname_41368
if 
  $akWeedGrams > 0
goto_if_false @Noname_41393
$mission2Complete = 1

:Noname_41393
if 
  $mission3Ready > 0
goto_if_false @Noname_41418
$mission2Complete = 1

:Noname_41418
if 
  $mission3Unlocked > 0
goto_if_false @Noname_41443
$mission2Complete = 1

:Noname_41443
if 
  $mission3Started > 0
goto_if_false @Noname_41468
$mission2Complete = 1

:Noname_41468
if 
  $mission4Started > 0
goto_if_false @Noname_41528
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission3Harvested = 4
$mission3PhoneDone = 1

:Noname_41528
if 
  $mission4Complete == 1
goto_if_false @Noname_41602
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission3Harvested = 4
$mission3PhoneDone = 1
$mission4Started = 1
$mission4AkHarvested = 2

:Noname_41602
if 
  $slingingUnlocked == 1
goto_if_false @Noname_41697
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission3Harvested = 4
$mission3PhoneDone = 1
$mission4Started = 1
$mission4Complete = 1
$mission4AkHarvested = 2
$mission5Started = 1
$mission5CallDone = 1

:Noname_41697
if 
  $farmOwned == 1
goto_if_false @Noname_41884
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission3Harvested = 4
$mission3PhoneDone = 1
$mission4Started = 1
$mission4Complete = 1
$mission4AkHarvested = 2
$mission5Started = 1
$mission5CallDone = 1
$slingingUnlocked = 1
$mission6Started = 2
if 
  $mission6SoldGrams < 100
goto_if_false @Noname_41831
$mission6SoldGrams = 100

:Noname_41831
if 
  $mission7Started == 0
goto_if_false @Noname_41856
$mission7Started = 2

:Noname_41856
$mission8Complete = 1
$mission8Started = 2
$mission8Unlocked = 2
$farmGuardsSpawned = 2

:Noname_41884
if 
  $growhouseOwned == 1
goto_if_false @Noname_41909
$growhouseTyrellCallDone = 1

:Noname_41909
if 
  $cocaineGrams > 0
goto_if_false @Noname_41934
$cocaineBreakthroughDone = 1

:Noname_41934
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_42149
$mission2Complete = 1
$mission3Ready = 3
$mission3Unlocked = 2
$mission3Started = 1
$mission3Harvested = 4
$mission3PhoneDone = 1
$mission4Started = 1
$mission4Complete = 1
$mission4AkHarvested = 2
$mission5Started = 1
$mission5CallDone = 1
$slingingUnlocked = 1
$mission6Started = 2
if 
  $mission6SoldGrams < 100
goto_if_false @Noname_42068
$mission6SoldGrams = 100

:Noname_42068
if 
  $mission7Started == 0
goto_if_false @Noname_42093
$mission7Started = 2

:Noname_42093
$mission8Complete = 1
$mission8Started = 2
$mission8Unlocked = 2
$mayaUnlocked = 1
$mayaIntroSpawned = 2
$mayaObjectiveStarted = 2
$nightlifeSlingingUnlocked = 1
$empirePhaseUnlocked = 1

:Noname_42149
if 
  $route1TrustedBonus == 1
goto_if_false @Noname_42216
$route1CocaineDone = 1
$route1UpgradeBought = 1
$empirePhaseUnlocked = 1
$mayaUnlocked = 1
$mayaIntroSpawned = 2
$mayaObjectiveStarted = 2
$nightlifeSlingingUnlocked = 1

:Noname_42216
if 
  $myronPhoneComplete == 1
goto_if_false @Noname_42248
$myronIntroCallDone = 1
$myronPhoneUnlocked = 1

:Noname_42248
if 
  $myronSupplierCallDone == 1
goto_if_false @Noname_42287
$myronIntroCallDone = 1
$myronPhoneUnlocked = 1
$myronPhoneComplete = 1

:Noname_42287
if 
  $mexicanContactTalked == 1
goto_if_false @Noname_42312
$empireSupplierCallDone = 1

:Noname_42312
if 
  $mission2Complete == 1
goto_if_false @Noname_42415
$mission2Unlocked = 1
$mission2Started = 2
$mission2Ready = 0
$mission2EnemyCleaned = 1
$mission2AutoStart = 0
if 
  11@ < 5
goto_if_false @Noname_42390
11@ = 5

:Noname_42390
if 
  12@ == 0
goto_if_false @Noname_42415
12@ = 1

:Noname_42415
if 
  $mission3Started > 0
goto_if_false @Noname_42465
$mission3Ready = 3
if 
  $mission3Unlocked < 2
goto_if_false @Noname_42465
$mission3Unlocked = 2

:Noname_42465
if 
  $mission3PhoneDone == 1
goto_if_false @Noname_42560
$mission3Started = 1
$mission3Harvested = 4
$hillPlantDone1 = 1
$hillPlantDone2 = 1
$hillPlantDone3 = 1
$hillPlantDone4 = 1
$hillPrompt1 = 0
$hillPrompt2 = 0
$hillPrompt3 = 0
$hillPrompt4 = 0
$hillGuardsSpawned = 2

:Noname_42560
if 
  $mission4Complete == 1
goto_if_false @Noname_42592
$mission4Started = 1
$mission4AkHarvested = 2

:Noname_42592
if 
  $mission5CallDone == 1
goto_if_false @Noname_42617
$mission5Started = 1

:Noname_42617
if 
  $mission8Complete == 1
goto_if_false @Noname_42649
$mission8Started = 2
$mission8Unlocked = 2

:Noname_42649
if 
  $mission9Started == 2
goto_if_false @Noname_42706
$nightlifeSlingingUnlocked = 1
$mayaUnlocked = 1
if 
  $mission9Sales < 5
goto_if_false @Noname_42706
$mission9Sales = 5

:Noname_42706
return 

:Noname_42708
if 
  2@ == -1
goto_if_false @Noname_42748
2@ = add_short_range_sprite_blip_for_coord 2467.4016 {y} -1755.2 {z} 13.0 {sprite} RadarSprite.Cash

:Noname_42748
if 
  4@ == 1
goto_if_false @Noname_42849
if 
  1@ == -1
goto_if_false @Noname_42809
1@ = add_sphere 2305.7 {y} -1794.9 {z} 13.5468 {radius} 1.0

:Noname_42809
if 
  3@ == -1
goto_if_false @Noname_42849
3@ = add_short_range_sprite_blip_for_coord 2305.7 {y} -1794.9 {z} 13.5468 {sprite} RadarSprite.Cash

:Noname_42849
if 
  $growhouseOwned == 1
goto_if_false @Noname_42964
if 
  $growhouseBlip == -1
goto_if_false @Noname_42907
$growhouseBlip = add_short_range_sprite_blip_for_coord 2450.5 {y} -949.8 {z} 80.69 {sprite} RadarSprite.Cash

:Noname_42907
if 
  $growhouseTyrellCallDone == 1
goto_if_false @Noname_42932
$tyrellCrewSpawned = 0

:Noname_42932
if 
  $growhouseSecurityBought == 1
goto_if_false @Noname_42964
$growhouseSecuritySpawned = 0
gosub @Noname_54543

:Noname_42964
if 
  $farmOwned == 1
goto_if_false @Noname_43029
if 
  $farmBlip == -1
goto_if_false @Noname_43022
$farmBlip = add_short_range_sprite_blip_for_coord 1044.4471 {y} -332.1785 {z} 73.985 {sprite} RadarSprite.Cash

:Noname_43022
$farmCrewSpawned = 0

:Noname_43029
if 
  $slingingUnlocked == 1
goto_if_false @Noname_43245
$isaacDiscovered = 1
$mission5Started = 1
if 
  $isaacBlip == -1
goto_if_false @Noname_43101
$isaacBlip = add_short_range_sprite_blip_for_coord 368.8 {y} -2045.2 {z} 8.6 {sprite} RadarSprite.Cash

:Noname_43101
if 
  $isaacMarker == -1
goto_if_false @Noname_43144
$isaacMarker = add_sphere 368.8 {y} -2045.2 {z} 8.6 {radius} 1.2

:Noname_43144
if 
  $isaacSpawned == 0
goto_if_false @Noname_43245
request_model #BMORI

:Noname_43166
  not has_model_loaded #BMORI
goto_if_false @Noname_43188
wait 0
goto @Noname_43166

:Noname_43188
$isaac = create_char PedType.CivMale {modelId} #BMORI {x} 370.0 {y} -2046.0 {z} 8.6
set_char_heading $isaac {heading} 120.0
wait 500
freeze_char_position $isaac {state} True
mark_model_as_no_longer_needed #BMORI
$isaacSpawned = 1

:Noname_43245
if 
  $ecstasyDealerDeals > 0
goto_if_false @Noname_43328
if 
  $ecstasyDealerBlip == -1
goto_if_false @Noname_43303
$ecstasyDealerBlip = add_short_range_sprite_blip_for_coord 408.0 {y} -2052.0 {z} 8.9 {sprite} RadarSprite.Cash

:Noname_43303
if 
  $ecstasyDealerSpawned == 0
goto_if_false @Noname_43328
gosub @Noname_46859

:Noname_43328
if 
  $mayaUnlocked == 1
goto_if_false @Noname_43470
if 
  $mayaIntroSpawned < 2
goto_if_false @Noname_43371
$mayaIntroSpawned = 2

:Noname_43371
if 
  $mayaIntroSpawned > 1
goto_if_false @Noname_43463
if 
  $mayaBlip <> -1
goto_if_false @Noname_43419
remove_blip $mayaBlip
$mayaBlip = -1

:Noname_43419
if 
  $mayaMarker <> -1
goto_if_false @Noname_43449
remove_sphere $mayaMarker
$mayaMarker = -1

:Noname_43449
$mayaIntroActorSpawned = 0
$mayaIntroSpawned = 2

:Noname_43463
goto @Noname_43495

:Noname_43470
if 
  $mayaIntroSpawned == 1
goto_if_false @Noname_43495
gosub @Noname_47106

:Noname_43495
if 
  $chemistDiscovered == 1
goto_if_false @Noname_43668
if 
  $morganFarmMoved == 1
goto_if_false @Noname_43603
if 
  $chemistBlip == -1
goto_if_false @Noname_43571
$chemistBlip = add_short_range_sprite_blip_for_coord 1037.8 {y} -326.0 {z} 73.985 {sprite} RadarSprite.Cash

:Noname_43571
if 
  $chemistSpawned == 0
goto_if_false @Noname_43596
$chemistSpawned = 0

:Noname_43596
goto @Noname_43668

:Noname_43603
if 
  $chemistBlip == -1
goto_if_false @Noname_43643
$chemistBlip = add_short_range_sprite_blip_for_coord 473.8 {y} -1143.4 {z} 68.5578 {sprite} RadarSprite.Cash

:Noname_43643
if 
  $chemistSpawned == 0
goto_if_false @Noname_43668
gosub @Noname_69569

:Noname_43668
if 
  $myronPhoneUnlocked == 1
goto_if_false @Noname_43787
if 
  $myronPhoneComplete == 0
goto_if_false @Noname_43787
if 
  $myronBlip == -1
goto_if_false @Noname_43744
$myronBlip = add_short_range_sprite_blip_for_coord 2259.2998 {y} -1211.9023 {z} 23.9687 {sprite} RadarSprite.Qmark

:Noname_43744
if 
  $myronMarker == -1
goto_if_false @Noname_43787
$myronMarker = add_sphere 2259.2998 {y} -1211.9023 {z} 23.9687 {radius} 1.3

:Noname_43787
return 

:Noname_43789
$mission2Unlocked = 1
$mission2Started = 1
do_fade 0 {direction} 1000
wait 1200
do_fade 1 {direction} 1000
wait 1200
print_string_now "MISSION II" {time} 5000
wait 2500
print_help_formatted "Supplier: Some Vagos hit my stash last night."
wait 3500
print_help_formatted "Supplier: Find the one holding my bag."
wait 3500
print_help_formatted "Supplier: Whatever else you find, keep it. I just want payback."
wait 4000
request_model #LSV3
request_model #COLT45
request_model #BRIEFCASE

:Noname_44039
  not has_model_loaded #LSV3
goto_if_false @Noname_44061
wait 0
goto @Noname_44039

:Noname_44061
  not has_model_loaded #COLT45
goto_if_false @Noname_44084
wait 0
goto @Noname_44061

:Noname_44084
  not has_model_loaded #BRIEFCASE
goto_if_false @Noname_44107
wait 0
goto @Noname_44084

:Noname_44107
$vagosEnemy = create_char PedType.CivMale {modelId} #LSV3 {x} 2788.3999 {y} -1614.2 {z} 10.9
$mission2EnemyCleaned = 0
set_char_heading $vagosEnemy {heading} 180.0
give_weapon_to_char $vagosEnemy {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $vagosEnemy {accuracy} 45
task_kill_char_on_foot $vagosEnemy {target} $scplayer
$missionBriefcase = create_object #BRIEFCASE {x} 2788.8999 {y} -1615.0 {z} 10.9
5@ = add_short_range_sprite_blip_for_coord 2788.8999 {y} -1615.0 {z} 10.9 {sprite} RadarSprite.Qmark
mark_model_as_no_longer_needed #LSV3
mark_model_as_no_longer_needed #COLT45
mark_model_as_no_longer_needed #BRIEFCASE
print_string_now "OBJECTIVE~n~Take the briefcase near the robber" {time} 5000
return 

:Noname_44287
$mission3Started = 1
$mission3Harvested = 0
$mission3PhoneDone = 0
$hillGuardsSpawned = 0
$hillPlantDone1 = 0
$hillPlantDone2 = 0
$hillPlantDone3 = 0
$hillPlantDone4 = 0
request_model #GRASSPLANT

:Noname_44348
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_44371
wait 0
goto @Noname_44348

:Noname_44371
$hillPlant1 = create_object #GRASSPLANT {x} 2445.8552 {y} -950.28 {z} 78.9
set_object_scale $hillPlant1 {scale} 0.7
$hillPlantBlip1 = add_blip_for_object $hillPlant1
change_blip_colour $hillPlantBlip1 {color} BlipColor.White
change_blip_display $hillPlantBlip1 {display} BlipDisplay.Both
$hillPlant2 = create_object #GRASSPLANT {x} 2443.3552 {y} -950.28 {z} 78.9
set_object_scale $hillPlant2 {scale} 0.7
$hillPlantBlip2 = add_blip_for_object $hillPlant2
change_blip_colour $hillPlantBlip2 {color} BlipColor.White
change_blip_display $hillPlantBlip2 {display} BlipDisplay.Both
$hillPlant3 = create_object #GRASSPLANT {x} 2448.3552 {y} -950.28 {z} 78.9
set_object_scale $hillPlant3 {scale} 0.7
$hillPlantBlip3 = add_blip_for_object $hillPlant3
change_blip_colour $hillPlantBlip3 {color} BlipColor.White
change_blip_display $hillPlantBlip3 {display} BlipDisplay.Both
$hillPlant4 = create_object #GRASSPLANT {x} 2445.8552 {y} -953.28 {z} 78.9
set_object_scale $hillPlant4 {scale} 0.7
$hillPlantBlip4 = add_blip_for_object $hillPlant4
change_blip_colour $hillPlantBlip4 {color} BlipColor.White
change_blip_display $hillPlantBlip4 {display} BlipDisplay.Both
mark_model_as_no_longer_needed #GRASSPLANT
print_string_now "MISSION III~n~Harvest the hill grow" {time} 6000
return 

:Noname_44640
$hillGuardsSpawned = 1
request_model #LSV1
request_model #LSV2
request_model #LSV3
request_model #BALLAS2
request_model #COLT45

:Noname_44668
  not has_model_loaded #LSV1
goto_if_false @Noname_44690
wait 0
goto @Noname_44668

:Noname_44690
  not has_model_loaded #LSV2
goto_if_false @Noname_44712
wait 0
goto @Noname_44690

:Noname_44712
  not has_model_loaded #LSV3
goto_if_false @Noname_44734
wait 0
goto @Noname_44712

:Noname_44734
  not has_model_loaded #BALLAS2
goto_if_false @Noname_44756
wait 0
goto @Noname_44734

:Noname_44756
  not has_model_loaded #COLT45
goto_if_false @Noname_44779
wait 0
goto @Noname_44756

:Noname_44779
$hillGuard1 = create_char PedType.CivMale {modelId} #LSV1 {x} 2445.8552 {y} -950.28 {z} 80.283
set_char_heading $hillGuard1 {heading} 180.0
give_weapon_to_char $hillGuard1 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $hillGuard1 {accuracy} 45
task_kill_char_on_foot $hillGuard1 {target} $scplayer
$hillGuard2 = create_char PedType.CivMale {modelId} #LSV2 {x} 2443.3552 {y} -950.28 {z} 80.283
set_char_heading $hillGuard2 {heading} 210.0
give_weapon_to_char $hillGuard2 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $hillGuard2 {accuracy} 45
task_kill_char_on_foot $hillGuard2 {target} $scplayer
$hillGuard3 = create_char PedType.CivMale {modelId} #BALLAS2 {x} 2448.3552 {y} -950.28 {z} 80.283
set_char_heading $hillGuard3 {heading} 120.0
give_weapon_to_char $hillGuard3 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $hillGuard3 {accuracy} 45
task_kill_char_on_foot $hillGuard3 {target} $scplayer
$hillGuard4 = create_char PedType.CivMale {modelId} #LSV3 {x} 2445.8552 {y} -953.28 {z} 80.283
set_char_heading $hillGuard4 {heading} 90.0
give_weapon_to_char $hillGuard4 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $hillGuard4 {accuracy} 45
task_kill_char_on_foot $hillGuard4 {target} $scplayer
mark_model_as_no_longer_needed #LSV1
mark_model_as_no_longer_needed #LSV2
mark_model_as_no_longer_needed #LSV3
mark_model_as_no_longer_needed #BALLAS2
mark_model_as_no_longer_needed #COLT45
print_string_now "Vagos arrived at the grow" {time} 3000
return 

:Noname_45070
$growhouseTyrellCallDone = 1
set_var_int_to_lvar_int $tyrellCallTime = 15@
print_string_now "PHONE CALL~n~CJ calls Tyrell" {time} 4000
wait 3000
print_help_formatted "CJ: Tyrell, get to that house in the hills."
wait 3500
print_help_formatted "CJ: I got a business idea, and I need Grove hands on it."
wait 4000
print_help_formatted "Tyrell: Say less, CJ. I'll head there."
wait 3500
return 

:Noname_45294
if 
  $mission5Started == 0
goto_if_false @Noname_45618
$mission5Started = 1
$mission5CallDone = 1
print_string_now "PHONE CALL~n~CJ calls the buyer" {time} 4000
wait 3000
print_help_formatted "CJ: Unc, who do I look for at the beach to get this moving?"
wait 4000
print_help_formatted "Buyer: Find Isaac. He hustles weed around the beach."
wait 4000
print_help_formatted "Buyer: He keeps away from crowds. Look for him somewhere secluded."
wait 4500
print_string_now "MISSION V~n~Find Isaac at the beach" {time} 6000

:Noname_45618
return 

:Noname_45620
$mission6Started = 1
$mission6SoldGrams = 0
print_string_now "MISSION VI~n~Slinging" {time} 6000
wait 3000
print_help_formatted "Isaac: You CJ? Heard you got something stronger than street smoke."
wait 4000
print_help_formatted "CJ: I am looking for a beach connection."
wait 3500
print_help_formatted "Isaac: Then you found one. But out here, you move careful."
wait 4000
print_help_formatted "Isaac: Customers drift around Santa Maria. Not too close, not too often."
wait 4500
print_help_formatted "Isaac: When you spot one, walk up and press T. Keep your eyes open for cops."
wait 4500
print_string_now "OBJECTIVE~n~Sell 100g AK-47 at Santa Maria Beach" {time} 6000
wait 3500
$slingingUnlocked = 1
set_var_int_to_lvar_int $slingNextSpawn = 15@
$slingNextSpawn += 10000
return 

:Noname_46114
$slingSpawnIndex += 1
if 
  $slingSpawnIndex == 1
goto_if_false @Noname_46176
$slingCustomerX = 248.0
$slingCustomerY = -1788.0
$slingCustomerZ = 3.2
goto @Noname_46488

:Noname_46176
if 
  $slingSpawnIndex == 2
goto_if_false @Noname_46231
$slingCustomerX = 263.0
$slingCustomerY = -1802.0
$slingCustomerZ = 3.2
goto @Noname_46488

:Noname_46231
if 
  $slingSpawnIndex == 3
goto_if_false @Noname_46286
$slingCustomerX = 282.0
$slingCustomerY = -1816.0
$slingCustomerZ = 3.2
goto @Noname_46488

:Noname_46286
if 
  $slingSpawnIndex == 4
goto_if_false @Noname_46341
$slingCustomerX = 310.0
$slingCustomerY = -1794.0
$slingCustomerZ = 3.4
goto @Noname_46488

:Noname_46341
if 
  $slingSpawnIndex == 5
goto_if_false @Noname_46396
$slingCustomerX = 326.0
$slingCustomerY = -1828.0
$slingCustomerZ = 3.4
goto @Noname_46488

:Noname_46396
if 
  $slingSpawnIndex == 6
goto_if_false @Noname_46451
$slingCustomerX = 222.0
$slingCustomerY = -1798.0
$slingCustomerZ = 3.1
goto @Noname_46488

:Noname_46451
$slingCustomerX = 296.0
$slingCustomerY = -1842.0
$slingCustomerZ = 3.3
$slingSpawnIndex = 0

:Noname_46488
$slingCustomerModel = 7
if 
  $slingSpawnIndex == 1
goto_if_false @Noname_46527
$slingCustomerModel = 7
goto @Noname_46694

:Noname_46527
if 
  $slingSpawnIndex == 2
goto_if_false @Noname_46559
$slingCustomerModel = 21
goto @Noname_46694

:Noname_46559
if 
  $slingSpawnIndex == 3
goto_if_false @Noname_46591
$slingCustomerModel = 22
goto @Noname_46694

:Noname_46591
if 
  $slingSpawnIndex == 4
goto_if_false @Noname_46623
$slingCustomerModel = 23
goto @Noname_46694

:Noname_46623
if 
  $slingSpawnIndex == 5
goto_if_false @Noname_46655
$slingCustomerModel = 18
goto @Noname_46694

:Noname_46655
if 
  $slingSpawnIndex == 6
goto_if_false @Noname_46687
$slingCustomerModel = 19
goto @Noname_46694

:Noname_46687
$slingCustomerModel = 45

:Noname_46694
request_model $slingCustomerModel

:Noname_46699
  not has_model_loaded $slingCustomerModel
goto_if_false @Noname_46722
wait 0
goto @Noname_46699

:Noname_46722
$slingCustomer = create_char PedType.CivMale {modelId} $slingCustomerModel {x} $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ
set_char_heading $slingCustomer {heading} 90.0
wait 1500
freeze_char_position $slingCustomer {state} True
mark_model_as_no_longer_needed $slingCustomerModel
$slingCustomerBlip = add_short_range_sprite_blip_for_coord $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {sprite} RadarSprite.Cash
$slingCustomerMarker = add_sphere $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {radius} 1.2
$slingCustomerActive = 1
$slingCustomerMenu = 0
$slingCustomerPrompt = 0
print_string_now "Potential customer spotted" {time} 5000
return 

:Noname_46859
$ecstasyDealerSpawned = 1
if 
  $ecstasyDealerBlip <> -1
goto_if_false @Noname_46896
remove_blip $ecstasyDealerBlip
$ecstasyDealerBlip = -1

:Noname_46896
if 
  $ecstasyDealerMarker <> -1
goto_if_false @Noname_46926
remove_sphere $ecstasyDealerMarker
$ecstasyDealerMarker = -1

:Noname_46926
request_model #WMYDRUG

:Noname_46930
  not has_model_loaded #WMYDRUG
goto_if_false @Noname_46952
wait 0
goto @Noname_46930

:Noname_46952
$ecstasyDealer = create_char PedType.CivMale {modelId} #WMYDRUG {x} 408.0 {y} -2052.0 {z} 8.9
set_char_heading $ecstasyDealer {heading} 270.0
wait 500
freeze_char_position $ecstasyDealer {state} True
mark_model_as_no_longer_needed #WMYDRUG
$ecstasyDealerBlip = add_short_range_sprite_blip_for_coord 408.0 {y} -2052.0 {z} 8.9 {sprite} RadarSprite.Cash
$ecstasyDealerMarker = add_sphere 408.0 {y} -2052.0 {z} 8.9 {radius} 1.2
print_string_now "NEW DEALER~n~Dollar marker near Santa Maria pier" {time} 6000
return 

:Noname_47106
$mayaIntroSpawned = 1
$mayaIntroActorSpawned = 0
if 
  $mayaBlip <> -1
goto_if_false @Noname_47150
remove_blip $mayaBlip
$mayaBlip = -1

:Noname_47150
if 
  $mayaMarker <> -1
goto_if_false @Noname_47180
remove_sphere $mayaMarker
$mayaMarker = -1

:Noname_47180
request_model #WFYRI

:Noname_47184
  not has_model_loaded #WFYRI
goto_if_false @Noname_47206
wait 0
goto @Noname_47184

:Noname_47206
$maya = create_char PedType.CivMale {modelId} #WFYRI {x} 258.5 {y} -1809.7 {z} 3.6
set_char_heading $maya {heading} 180.0
wait 1000
freeze_char_position $maya {state} True
$mayaIntroActorSpawned = 1
mark_model_as_no_longer_needed #WFYRI
$mayaBlip = add_short_range_sprite_blip_for_coord 258.5 {y} -1808.5 {z} 3.2 {sprite} RadarSprite.Qmark
$mayaMarker = add_sphere 258.5 {y} -1808.5 {z} 3.2 {radius} 1.2
print_string_now "SPECIAL CUSTOMER~n~Someone wants to talk" {time} 6000
return 

:Noname_47359
if 
  $lsdTabs > 0
goto_if_false @Noname_47976
print_help_formatted "Maya: You are the one Isaac has people whispering about?"
wait 4500
print_help_formatted "CJ: Found this tab on one of those Vagos at Hilltop."
wait 5000
print_help_formatted "CJ: Isaac said you might know what it is worth."
wait 4500
print_help_formatted "Maya: LSD? Then you are not just beach traffic anymore."
wait 4500
print_help_formatted "Maya: I move with a different crowd. Night people. Club people."
wait 5000
print_help_formatted "Maya: Ecstasy, LSD, mushrooms. Find me near Market and we talk business."
wait 5000
$lsdTabs -= 1
if 
  $mayaBlip <> -1
goto_if_false @Noname_47819
remove_blip $mayaBlip
$mayaBlip = -1

:Noname_47819
if 
  $mayaMarker <> -1
goto_if_false @Noname_47849
remove_sphere $mayaMarker
$mayaMarker = -1

:Noname_47849
delete_char $maya
$mayaIntroActorSpawned = 0
$mayaUnlocked = 1
$nightlifeSlingingUnlocked = 1
$mayaIntroSpawned = 2
$mayaPrompt = 0
$mayaBlip = -1
print_string_now "NEW CONTACT UNLOCKED~n~Maya" {time} 6000
wait 3500
print_string_now "Nightlife slinging unlocked" {time} 5000
goto @Noname_48002

:Noname_47976
print_string_now "You need an LSD tab" {time} 3000

:Noname_48002
return 

:Noname_48004
$mayaIntroSpawned = 3
$mayaIntroActorSpawned = 1
request_model #WFYRI

:Noname_48022
  not has_model_loaded #WFYRI
goto_if_false @Noname_48044
wait 0
goto @Noname_48022

:Noname_48044
$maya = create_char PedType.CivMale {modelId} #WFYRI {x} 1095.0 {y} -1185.0 {z} 18.0
set_char_heading $maya {heading} 90.0
wait 1000
freeze_char_position $maya {state} True
mark_model_as_no_longer_needed #WFYRI
if 
  $mayaMarker == -1
goto_if_false @Noname_48137
$mayaMarker = add_sphere 1093.8 {y} -1185.0 {z} 18.0 {radius} 1.2

:Noname_48137
if 
  $mayaBlip == -1
goto_if_false @Noname_48177
$mayaBlip = add_short_range_sprite_blip_for_coord 1093.8 {y} -1185.0 {z} 18.0 {sprite} RadarSprite.Cash

:Noname_48177
print_string_now "MAYA~n~Nightlife contact found" {time} 5000
return 
print_help_formatted "Maya: Santa Maria taught you foot traffic. Market teaches you taste."
wait 5000
print_help_formatted "Maya: Build trust here and the crowd starts asking for things Isaac's people do not touch."
wait 5500
print_string_now "Nightlife slinging - Market~n~Prototype unlocked" {time} 5000
return 

:Noname_48451
if 
  is_score_greater $player1 {money} 59
goto_if_false @Noname_48577
add_score $player1 {money} -60
$ecstasyPills += 5
print_help_formatted "Maya: Party crowd remembers bad nights. Keep it clean."
wait 3500
print_string_now "Bought 5 ecstasy" {time} 3000
goto @Noname_48596

:Noname_48577
print_string_now "You need $60" {time} 3000

:Noname_48596
return 

:Noname_48598
if 
  is_score_greater $player1 {money} 59
goto_if_false @Noname_48733
add_score $player1 {money} -60
$lsdTabs += 1
print_help_formatted "Maya: One tab can open doors or close them. Choose who gets it."
wait 4000
print_string_now "Bought 1 LSD tab" {time} 3000
goto @Noname_48752

:Noname_48733
print_string_now "You need $60" {time} 3000

:Noname_48752
return 

:Noname_48754
if 
  is_score_greater $player1 {money} 44
goto_if_false @Noname_48879
add_score $player1 {money} -45
$mushroomPacks += 3
print_help_formatted "Maya: Softer crowd, slower money. Still money."
wait 3500
print_string_now "Bought 3 mushroom packs" {time} 3000
goto @Noname_48898

:Noname_48879
print_string_now "You need $45" {time} 3000

:Noname_48898
return 

:Noname_48900
if 
  $cocaineGrams > 9
goto_if_false @Noname_49067
$cocaineGrams -= 10
add_score $player1 {money} 2500
$drugHeat += 10
print_string_now "Sold 10g cocaine to Maya~n~+$2500" {time} 5000
wait 2500
print_help_formatted "Maya: This is not party money anymore. This is territory money."
gosub @Noname_76539
goto @Noname_49090

:Noname_49067
print_string_now "Need 10g cocaine" {time} 3000

:Noname_49090
return 

:Noname_49092
if 
  $nightlifeActive == 1
goto_if_false @Noname_49181
$nightlifeActive = 0
if 
  $nightCustomerActive == 1
goto_if_false @Noname_49142
gosub @Noname_50336

:Noname_49142
print_string_now "Nightlife slinging paused" {time} 3000
goto @Noname_49550

:Noname_49181
$nightlifeActive = 1
set_var_int_to_lvar_int $nightNextSpawn = 15@
$nightNextSpawn += 8000
if 
  $mission9Started == 0
goto_if_false @Noname_49437
$mission9Started = 1
$mission9Sales = 0
print_string_now "MISSION IX~n~Nightlife Slinging" {time} 6000
wait 2500
print_help_formatted "Maya: Stay close. My crowd does not wander like Isaac's beach people."
wait 4500
print_help_formatted "Maya: Five clean sales. Then the Market crowd knows your name."
wait 4500
goto @Noname_49550

:Noname_49437
print_string_now "Nightlife slinging - Market" {time} 4000
wait 1500
print_help_formatted "Maya: Stay close. My crowd does not wander like Isaac's beach people."

:Noname_49550
return 

:Noname_49552
$nightSpawnIndex += 1
if 
  $nightSpawnIndex == 1
goto_if_false @Noname_49631
$slingCustomerX = 1070.181
$slingCustomerY = -1161.7347
$slingCustomerZ = 23.8281
$nightCustomerA = 93.0
$nightCustomerModel = 7
goto @Noname_49829

:Noname_49631
if 
  $nightSpawnIndex == 2
goto_if_false @Noname_49703
$slingCustomerX = 1144.579
$slingCustomerY = -1104.895
$slingCustomerZ = 25.6578
$nightCustomerA = 265.0
$nightCustomerModel = 21
goto @Noname_49829

:Noname_49703
if 
  $nightSpawnIndex == 3
goto_if_false @Noname_49775
$slingCustomerX = 1212.4003
$slingCustomerY = -1130.2041
$slingCustomerZ = 24.21
$nightCustomerA = 188.0
$nightCustomerModel = 22
goto @Noname_49829

:Noname_49775
$slingCustomerX = 1136.717
$slingCustomerY = -1306.3486
$slingCustomerZ = 13.5863
$nightCustomerA = 1.0
$nightCustomerModel = 23
$nightSpawnIndex = 0

:Noname_49829
request_model $nightCustomerModel

:Noname_49834
  not has_model_loaded $nightCustomerModel
goto_if_false @Noname_49857
wait 0
goto @Noname_49834

:Noname_49857
$nightCustomer = create_char PedType.CivMale {modelId} $nightCustomerModel {x} $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ
set_char_heading $nightCustomer {heading} $nightCustomerA
wait 1000
freeze_char_position $nightCustomer {state} True
mark_model_as_no_longer_needed $nightCustomerModel
$nightCustomerBlip = add_short_range_sprite_blip_for_coord $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {sprite} RadarSprite.Cash
$nightCustomerMarker = add_sphere $slingCustomerX {y} $slingCustomerY {z} $slingCustomerZ {radius} 1.2
$nightCustomerActive = 1
$nightCustomerMenu = 0
$nightCustomerPrompt = 0
print_string_now "Nightlife customer spotted" {time} 4000
return 

:Noname_49992
if 
  $nightCustomerBlip <> -1
goto_if_false @Noname_50022
remove_blip $nightCustomerBlip
$nightCustomerBlip = -1

:Noname_50022
if 
  $nightCustomerMarker <> -1
goto_if_false @Noname_50052
remove_sphere $nightCustomerMarker
$nightCustomerMarker = -1

:Noname_50052
delete_char $nightCustomer
$nightCustomerActive = 0
$nightCustomerMenu = 0
$nightCustomerPrompt = 0
$nightlifeRep += 2
$drugHeat += 2
print_formatted_now "+2 Nightlife rep~n~Rep:%d Heat:%d" {time} 4000 {args} $nightlifeRep $drugHeat 
gosub @Noname_76539
if 
  $mission9Started == 1
goto_if_false @Noname_50318
$mission9Sales += 1
if 
  $mission9Sales > 4
goto_if_false @Noname_50284
$mission9Started = 2
print_string_now "MISSION PASSED~n~Nightlife Slinging" {time} 6000
wait 2500
print_string_now "Nightlife slinging - Market" {time} 4000
goto @Noname_50318

:Noname_50284
print_formatted_now "MISSION IX~n~Sales:%d/5" {time} 4000 {args} $mission9Sales 

:Noname_50318
set_var_int_to_lvar_int $nightNextSpawn = 15@
$nightNextSpawn += 12000
return 

:Noname_50336
if 
  $nightCustomerBlip <> -1
goto_if_false @Noname_50366
remove_blip $nightCustomerBlip
$nightCustomerBlip = -1

:Noname_50366
if 
  $nightCustomerMarker <> -1
goto_if_false @Noname_50396
remove_sphere $nightCustomerMarker
$nightCustomerMarker = -1

:Noname_50396
delete_char $nightCustomer
$nightCustomerActive = 0
$nightCustomerMenu = 0
$nightCustomerPrompt = 0
set_var_int_to_lvar_int $nightNextSpawn = 15@
$nightNextSpawn += 8000
return 

:Noname_50440
if 
  $ecstasyPills > 0
goto_if_false @Noname_50547
$ecstasyPills -= 1
$slingSalePrice = 20
mult_int_var_by_int_var $slingSalePrice *= $nightlifeRep
$slingSalePrice /= 100
$slingSalePrice += 20
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold ecstasy for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_49992
goto @Noname_50564

:Noname_50547
print_string_now "No ecstasy" {time} 3000

:Noname_50564
return 

:Noname_50566
if 
  $lsdTabs > 0
goto_if_false @Noname_50669
$lsdTabs -= 1
$slingSalePrice = 90
mult_int_var_by_int_var $slingSalePrice *= $nightlifeRep
$slingSalePrice /= 100
$slingSalePrice += 90
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold LSD for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_49992
goto @Noname_50682

:Noname_50669
print_string_now "No LSD" {time} 3000

:Noname_50682
return 

:Noname_50684
if 
  $mushroomPacks > 0
goto_if_false @Noname_50793
$mushroomPacks -= 1
$slingSalePrice = 25
mult_int_var_by_int_var $slingSalePrice *= $nightlifeRep
$slingSalePrice /= 100
$slingSalePrice += 25
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold mushrooms for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_49992
goto @Noname_50812

:Noname_50793
print_string_now "No mushrooms" {time} 3000

:Noname_50812
return 

:Noname_50814
if 
  $cocaineGrams > 0
goto_if_false @Noname_50923
$cocaineGrams -= 1
$slingSalePrice = 180
mult_int_var_by_int_var $slingSalePrice *= $nightlifeRep
$slingSalePrice /= 100
$slingSalePrice += 180
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold cocaine for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_49992
goto @Noname_50940

:Noname_50923
print_string_now "No cocaine" {time} 3000

:Noname_50940
return 

:Noname_50942
if 
  is_score_greater $player1 {money} 59
goto_if_false @Noname_51579
add_score $player1 {money} -60
$ecstasyPackSize = 5
if 
  $ecstasyDealerStage == 1
goto_if_false @Noname_50999
$ecstasyPackSize = 6

:Noname_50999
if 
  $ecstasyDealerStage == 2
goto_if_false @Noname_51024
$ecstasyPackSize = 8

:Noname_51024
if 
  $ecstasyDealerStage > 2
goto_if_false @Noname_51049
$ecstasyPackSize = 10

:Noname_51049
add_int_var_to_int_var $ecstasyPills += $ecstasyPackSize
$ecstasyDealerDeals += 1
$slingingRepBeach += 1
$drugHeat += 3
print_formatted_now "Bought %d ecstasy~n~Dealer deals:%d~n~+1 rep +3 heat" {time} 5000 {args} $ecstasyPackSize $ecstasyDealerDeals 
wait 2500
gosub @Noname_76539
if 
  $ecstasyDealerDeals == 1
goto_if_false @Noname_51378
print_help_formatted "Dealer: Keep it quiet and we both keep eating."
wait 3500
print_help_formatted "Dealer: You want better supply, keep coming back and build level 2 standing with me."
wait 4500
print_string_now "DEALER STANDING~n~Build trust to level 2" {time} 5000
goto @Noname_51560

:Noname_51378
if 
  $ecstasyDealerDeals == 2
goto_if_false @Noname_51443
print_help_formatted "Dealer: You move calm. I like that."
goto @Noname_51560

:Noname_51443
if 
  $ecstasyDealerDeals == 3
goto_if_false @Noname_51514
print_help_formatted "Dealer: Beach money spends different, CJ."
goto @Noname_51560

:Noname_51514
print_help_formatted "Dealer: Same rules. Cash first, no names."

:Noname_51560
wait 2500
gosub @Noname_51792
goto @Noname_51602

:Noname_51579
print_string_now "Not enough money" {time} 3000

:Noname_51602
return 

:Noname_51604
if 
  $cocaineGrams > 4
goto_if_false @Noname_51768
$cocaineGrams -= 5
add_score $player1 {money} 1400
$drugHeat += 6
print_string_now "Sold 5g cocaine to dealer~n~+$1400" {time} 5000
wait 2500
print_help_formatted "Dealer: This is a different league. Keep my name out of it."
gosub @Noname_76539
goto @Noname_51790

:Noname_51768
print_string_now "Need 5g cocaine" {time} 3000

:Noname_51790
return 

:Noname_51792
if 
  $ecstasyDealerDeals > 4
goto_if_false @Noname_52019
if 
  $ecstasyDealerStage == 0
goto_if_false @Noname_52019
$ecstasyDealerStage = 1
print_string_now "DEALER RELATIONSHIP~n~Trust level 1" {time} 5000
wait 2500
print_help_formatted "Dealer: Five runs and no heat at my door. That means something."
wait 3500
print_help_formatted "Dealer: From now on, I put a little extra in your bag."
wait 3500

:Noname_52019
if 
  $ecstasyDealerDeals > 9
goto_if_false @Noname_52538
if 
  $ecstasyDealerStage == 1
goto_if_false @Noname_52538
$ecstasyDealerStage = 2
print_string_now "DEALER RELATIONSHIP~n~Trust level 2" {time} 5000
wait 2500
print_help_formatted "Dealer: You are not just buying anymore. You are building a lane."
wait 4000
print_help_formatted "Dealer: I can move bigger packs through you if you keep it clean."
wait 4000
if 
  $chemistUnlocked == 0
goto_if_false @Noname_52538
$chemistUnlocked = 1
print_help_formatted "Dealer: I know an old chemist. Weird man, useful man."
wait 4500
print_help_formatted "Dealer: He does not talk unless you have something worth processing."
wait 4500
print_help_formatted "Dealer: Grow poppy, bring raw opium, and he will reach out."
wait 4500
print_string_now "CHEMIST CONTACT~n~Harvest opium first" {time} 6000

:Noname_52538
if 
  $ecstasyDealerDeals > 14
goto_if_false @Noname_52771
if 
  $ecstasyDealerStage == 2
goto_if_false @Noname_52771
$ecstasyDealerStage = 3
print_string_now "DEALER RELATIONSHIP~n~Trusted contact" {time} 5000
wait 2500
print_help_formatted "Dealer: Fifteen deals. Most fools do not make it to five."
wait 4000
print_help_formatted "Dealer: You need product, you come straight to me. No middlemen."
wait 4000

:Noname_52771
return 

:Noname_52773
$beachCrowdSpawned = 1
request_model #BMYBE
request_model #BMYDJ
request_model #HMYBE
request_model #WFYBE

:Noname_52797
  not has_model_loaded #BMYBE
goto_if_false @Noname_52819
wait 0
goto @Noname_52797

:Noname_52819
  not has_model_loaded #BMYDJ
goto_if_false @Noname_52841
wait 0
goto @Noname_52819

:Noname_52841
  not has_model_loaded #HMYBE
goto_if_false @Noname_52863
wait 0
goto @Noname_52841

:Noname_52863
  not has_model_loaded #WFYBE
goto_if_false @Noname_52886
wait 0
goto @Noname_52863

:Noname_52886
$beachPed1 = create_char PedType.CivMale {modelId} #BMYBE {x} 230.0 {y} -1848.0 {z} 4.2
set_char_heading $beachPed1 {heading} 60.0
wait 200
$beachPed2 = create_char PedType.CivMale {modelId} #BMYDJ {x} 275.0 {y} -1822.0 {z} 4.4
set_char_heading $beachPed2 {heading} 180.0
wait 200
$beachPed3 = create_char PedType.CivMale {modelId} #HMYBE {x} 205.0 {y} -1795.0 {z} 4.3
set_char_heading $beachPed3 {heading} 270.0
wait 200
$beachPed4 = create_char PedType.CivMale {modelId} #WFYBE {x} 292.0 {y} -1765.0 {z} 4.6
set_char_heading $beachPed4 {heading} 120.0
wait 200
mark_model_as_no_longer_needed #BMYBE
mark_model_as_no_longer_needed #BMYDJ
mark_model_as_no_longer_needed #HMYBE
mark_model_as_no_longer_needed #WFYBE
return 

:Noname_53062
delete_char $beachPed1
delete_char $beachPed2
delete_char $beachPed3
delete_char $beachPed4
$beachCrowdSpawned = 0
return 

:Noname_53091
$tyrellCrewSpawned = 1
request_model #FAM1
request_model #FAM3

:Noname_53106
  not has_model_loaded #FAM1
goto_if_false @Noname_53128
wait 0
goto @Noname_53106

:Noname_53128
  not has_model_loaded #FAM3
goto_if_false @Noname_53150
wait 0
goto @Noname_53128

:Noname_53150
$tyrell = create_char PedType.CivMale {modelId} #FAM1 {x} 2456.0701 {y} -951.6974 {z} 80.768
set_char_heading $tyrell {heading} 173.0
wait 2000
freeze_char_position $tyrell {state} True
$groveWorker = create_char PedType.CivMale {modelId} #FAM3 {x} 2457.25 {y} -951.8974 {z} 80.768
set_char_heading $groveWorker {heading} 173.0
wait 2000
freeze_char_position $groveWorker {state} True
mark_model_as_no_longer_needed #FAM1
mark_model_as_no_longer_needed #FAM3
request_model #GRASSPLANT

:Noname_53255
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_53278
wait 0
goto @Noname_53255

:Noname_53278
$workerAkPlant = create_object #GRASSPLANT {x} 2450.8552 {y} -953.28 {z} 78.9
set_object_scale $workerAkPlant {scale} 0.65
mark_model_as_no_longer_needed #GRASSPLANT
$workerAkActive = 1
$workerAkReady = 0
set_var_int_to_lvar_int $workerAkStart = 15@
print_string_now "TYRELL ARRIVED~n~Talk to him at the growhouse" {time} 6000
return 

:Noname_53392
if 
  $workerSeeds > 3
goto_if_false @Noname_53463
print_string_now "Worker grow is full~n~4/4 plants active" {time} 3000
goto @Noname_53867

:Noname_53463
if 
  8@ > 0
goto_if_false @Noname_53840
8@ -= 1
$workerSeeds += 1
if 
  $workerSeeds == 1
goto_if_false @Noname_53535
set_var_int_to_lvar_int $workerGrowStart = 15@
$workerHarvestReady = 0
$workerHarvestGrams = 0

:Noname_53535
request_model #GRASSPLANT

:Noname_53540
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_53563
wait 0
goto @Noname_53540

:Noname_53563
if 
  $workerSeeds == 1
goto_if_false @Noname_53621
$hillPlant1 = create_object #GRASSPLANT {x} 2445.8552 {y} -950.28 {z} 78.9
set_object_scale $hillPlant1 {scale} 0.55
goto @Noname_53770

:Noname_53621
if 
  $workerSeeds == 2
goto_if_false @Noname_53679
$hillPlant2 = create_object #GRASSPLANT {x} 2443.3552 {y} -950.28 {z} 78.9
set_object_scale $hillPlant2 {scale} 0.55
goto @Noname_53770

:Noname_53679
if 
  $workerSeeds == 3
goto_if_false @Noname_53737
$hillPlant3 = create_object #GRASSPLANT {x} 2448.3552 {y} -950.28 {z} 78.9
set_object_scale $hillPlant3 {scale} 0.55
goto @Noname_53770

:Noname_53737
$hillPlant4 = create_object #GRASSPLANT {x} 2445.8552 {y} -953.28 {z} 78.9
set_object_scale $hillPlant4 {scale} 0.55

:Noname_53770
mark_model_as_no_longer_needed #GRASSPLANT
print_formatted_now "Tyrell planted a worker crop~n~Worker grow:%d/4" {time} 5000 {args} $workerSeeds 
goto @Noname_53867

:Noname_53840
print_string_now "You need a seed pack" {time} 3000

:Noname_53867
return 

:Noname_53869
if 
  $workerHarvestReady == 1
goto_if_false @Noname_54060
add_int_var_to_int_lvar 9@ += $workerHarvestGrams
print_formatted_now "Collected %dg cannabis from Tyrell" {time} 5000 {args} $workerHarvestGrams 
if 
  $workerSeeds > 0
goto_if_false @Noname_53963
delete_object $hillPlant1

:Noname_53963
if 
  $workerSeeds > 1
goto_if_false @Noname_53986
delete_object $hillPlant2

:Noname_53986
if 
  $workerSeeds > 2
goto_if_false @Noname_54009
delete_object $hillPlant3

:Noname_54009
if 
  $workerSeeds > 3
goto_if_false @Noname_54032
delete_object $hillPlant4

:Noname_54032
$workerSeeds = 0
$workerHarvestReady = 0
$workerHarvestGrams = 0
goto @Noname_54091

:Noname_54060
print_string_now "No worker cannabis ready" {time} 3000

:Noname_54091
if 
  $workerAkReady == 1
goto_if_false @Noname_54240
$akWeedGrams += 75
print_string_now "Collected 75g AK-47 from Tyrell" {time} 5000
delete_object $workerAkPlant
request_model #GRASSPLANT

:Noname_54164
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_54187
wait 0
goto @Noname_54164

:Noname_54187
$workerAkPlant = create_object #GRASSPLANT {x} 2450.8552 {y} -953.28 {z} 78.9
set_object_scale $workerAkPlant {scale} 0.65
mark_model_as_no_longer_needed #GRASSPLANT
$workerAkReady = 0
set_var_int_to_lvar_int $workerAkStart = 15@

:Noname_54240
return 

:Noname_54242
if 
  $growhouseSecurityBought == 0
goto_if_false @Noname_54509
if 
  is_score_greater $player1 {money} 2499
goto_if_false @Noname_54481
add_score $player1 {money} -2500
$growhouseSecurityBought = 1
print_string_now "GROWHOUSE SECURITY~n~Grove guard assigned" {time} 5000
wait 2500
print_help_formatted "Tyrell: I put a Grove soldier on the plants."
wait 3500
print_help_formatted "Tyrell: Anybody comes up that hill wrong, he handles it."
wait 3500
gosub @Noname_54543
goto @Noname_54502

:Noname_54481
print_string_now "You need $2500" {time} 3000

:Noname_54502
goto @Noname_54541

:Noname_54509
print_string_now "Security already upgraded" {time} 3000

:Noname_54541
return 

:Noname_54543
$growhouseSecuritySpawned = 1
request_model #FAM2

:Noname_54554
  not has_model_loaded #FAM2
goto_if_false @Noname_54576
wait 0
goto @Noname_54554

:Noname_54576
$growhouseSecurityGuard = create_char PedType.CivMale {modelId} #FAM2 {x} 2447.7 {y} -950.8 {z} 80.283
set_char_heading $growhouseSecurityGuard {heading} 180.0
give_weapon_to_char $growhouseSecurityGuard {weaponType} WeaponType.Ak47 {ammo} 500
set_char_accuracy $growhouseSecurityGuard {accuracy} 55
wait 500
freeze_char_position $growhouseSecurityGuard {state} True
mark_model_as_no_longer_needed #FAM2
return 

:Noname_54645
if 
  $slingCustomerBlip <> -1
goto_if_false @Noname_54675
remove_blip $slingCustomerBlip
$slingCustomerBlip = -1

:Noname_54675
if 
  $slingCustomerMarker <> -1
goto_if_false @Noname_54705
remove_sphere $slingCustomerMarker
$slingCustomerMarker = -1

:Noname_54705
freeze_char_position $slingCustomer {state} False
delete_char $slingCustomer
$slingCustomerActive = 0
$slingCustomerMenu = 0
$slingCustomerPrompt = 0
$slingingRepBeach += 2
$slingDeals += 1
$slingDealsSinceHeat += 1
if 
  $slingDeals > 4
goto_if_false @Noname_54857
if 
  $ecstasyDealerSpawned == 0
goto_if_false @Noname_54857
gosub @Noname_46859
wait 1500
print_string_now "DEALER CONTACT~n~Ecstasy source marked" {time} 5000
wait 1500

:Noname_54857
if 
  $slingDealsSinceHeat > 9
goto_if_false @Noname_54958
$slingDealsSinceHeat = 0
$drugHeat += 25
print_formatted_now "+25 HEAT~n~10 street deals completed~n~Heat:%d" {time} 5000 {args} $drugHeat 
wait 2500
gosub @Noname_76539

:Noname_54958
$slingThanks += 1
if 
  $slingThanks == 1
goto_if_false @Noname_55022
print_help_formatted "Customer: Good looking out."
goto @Noname_55132

:Noname_55022
if 
  $slingThanks == 2
goto_if_false @Noname_55081
print_help_formatted "Customer: I'll remember this."
goto @Noname_55132

:Noname_55081
print_help_formatted "Customer: That's exactly what I needed."
$slingThanks = 0

:Noname_55132
wait 2500
print_formatted_now "+2 Reputation - Santa Maria Beach~n~Rep:%d Deals:%d" {time} 5000 {args} $slingingRepBeach $slingDeals 
if 
  $mission6Started == 1
goto_if_false @Noname_55381
if 
  $mission6SoldGrams > 99
goto_if_false @Noname_55336
$mission6Started = 2
print_string_now "MISSION PASSED~n~Slinging" {time} 6000
wait 3500
print_string_now "Slinging - Santa Maria Beach" {time} 5000
wait 2500
gosub @Noname_55545
goto @Noname_55381

:Noname_55336
print_formatted_now "MISSION VI~n~AK sold:%dg/100g" {time} 4000 {args} $mission6SoldGrams 
wait 1500

:Noname_55381
set_var_int_to_lvar_int $slingNextSpawn = 15@
$slingNextSpawn += 25000
return 

:Noname_55399
if 
  $slingCustomerBlip <> -1
goto_if_false @Noname_55429
remove_blip $slingCustomerBlip
$slingCustomerBlip = -1

:Noname_55429
if 
  $slingCustomerMarker <> -1
goto_if_false @Noname_55459
remove_sphere $slingCustomerMarker
$slingCustomerMarker = -1

:Noname_55459
delete_char $slingCustomer
$slingCustomerActive = 0
$slingCustomerMenu = 0
$slingCustomerPrompt = 0
set_var_int_to_lvar_int $slingNextSpawn = 15@
$slingNextSpawn += 8000
print_string_now "Customer lost~n~Looking for another" {time} 3000
return 

:Noname_55545
if 
  $mission7Started == 0
goto_if_false @Noname_55852
$mission7Started = 1
print_string_now "PHONE CALL~n~Supplier" {time} 4000
wait 3000
print_help_formatted "Supplier: CJ, I got something different coming in."
wait 4000
print_help_formatted "Supplier: Poppy seeds. Riskier, but the money can move fast."
wait 4000
print_help_formatted "Supplier: Come by and I will sell you three to start."
wait 4000
print_string_now "MISSION VII~n~Buy 3 poppy seeds from the supplier" {time} 7000

:Noname_55852
return 

:Noname_55854
$mission8Started = 1
print_string_now "PHONE CALL~n~Tyrell" {time} 4000
wait 3000
print_help_formatted "Tyrell: CJ, that hill house is doing work, but it is too small."
wait 4500
print_help_formatted "Tyrell: If you are moving Morgan product, you need dirt. Real dirt."
wait 4500
print_help_formatted "Tyrell: I heard about Hilltop Farm. Vagos been using it as a stash route."
wait 5000
print_help_formatted "Tyrell: They are growing poppy out there. Clear them out and the dirt is ours."
wait 4500
$farmBlip = add_short_range_sprite_blip_for_coord 1044.4471 {y} -332.1785 {z} 73.985 {sprite} RadarSprite.Qmark
print_string_now "MISSION VIII~n~Bad Soil" {time} 6000
wait 3000
print_string_now "OBJECTIVE~n~Clear Hilltop Farm" {time} 6000
return 

:Noname_56309
$farmGuardsSpawned = 1
request_model #LSV1
request_model #LSV2
request_model #LSV3
request_model #COLT45

:Noname_56333
  not has_model_loaded #LSV1
goto_if_false @Noname_56355
wait 0
goto @Noname_56333

:Noname_56355
  not has_model_loaded #LSV2
goto_if_false @Noname_56377
wait 0
goto @Noname_56355

:Noname_56377
  not has_model_loaded #LSV3
goto_if_false @Noname_56399
wait 0
goto @Noname_56377

:Noname_56399
  not has_model_loaded #COLT45
goto_if_false @Noname_56422
wait 0
goto @Noname_56399

:Noname_56422
$farmGuard1 = create_char PedType.CivMale {modelId} #LSV1 {x} 1041.5 {y} -329.8 {z} 73.985
set_char_heading $farmGuard1 {heading} 220.0
give_weapon_to_char $farmGuard1 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $farmGuard1 {accuracy} 45
task_kill_char_on_foot $farmGuard1 {target} $scplayer
$farmGuard2 = create_char PedType.CivMale {modelId} #LSV2 {x} 1048.0 {y} -331.5 {z} 73.985
set_char_heading $farmGuard2 {heading} 180.0
give_weapon_to_char $farmGuard2 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $farmGuard2 {accuracy} 45
task_kill_char_on_foot $farmGuard2 {target} $scplayer
$farmGuard3 = create_char PedType.CivMale {modelId} #LSV3 {x} 1044.0 {y} -337.2 {z} 73.985
set_char_heading $farmGuard3 {heading} 90.0
give_weapon_to_char $farmGuard3 {weaponType} WeaponType.Pistol {ammo} 150
set_char_accuracy $farmGuard3 {accuracy} 45
task_kill_char_on_foot $farmGuard3 {target} $scplayer
request_model #VEG_PFLOWERS2WEE

:Noname_56604
  not has_model_loaded #VEG_PFLOWERS2WEE
goto_if_false @Noname_56627
wait 0
goto @Noname_56604

:Noname_56627
$farmPoppyPlant = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -332.1785 {z} 72.985
set_object_scale $farmPoppyPlant {scale} 0.45
$farmPoppyPlant2 = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -334.1785 {z} 72.985
set_object_scale $farmPoppyPlant2 {scale} 0.45
$farmPoppyPlant3 = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -336.1785 {z} 72.985
set_object_scale $farmPoppyPlant3 {scale} 0.45
$farmPoppyPlant4 = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -338.1785 {z} 72.985
set_object_scale $farmPoppyPlant4 {scale} 0.45
mark_model_as_no_longer_needed #LSV1
mark_model_as_no_longer_needed #LSV2
mark_model_as_no_longer_needed #LSV3
mark_model_as_no_longer_needed #COLT45
mark_model_as_no_longer_needed #VEG_PFLOWERS2WEE
print_string_now "VAGOS FARM~n~Hilltop Farm marked" {time} 4000
return 

:Noname_56822
if 
  $farmOwned == 0
goto_if_false @Noname_57330
if 
  is_score_greater $player1 {money} 999
goto_if_false @Noname_57302
add_score $player1 {money} -1000
$farmOwned = 1
$mission8Complete = 1
$farmPrompt = 0
delete_object $farmPoppyPlant
delete_object $farmPoppyPlant2
delete_object $farmPoppyPlant3
delete_object $farmPoppyPlant4
if 
  $farmMarker <> -1
goto_if_false @Noname_56938
remove_sphere $farmMarker
$farmMarker = -1

:Noname_56938
if 
  $farmBlip <> -1
goto_if_false @Noname_56968
remove_blip $farmBlip
$farmBlip = -1

:Noname_56968
$farmBlip = -1
print_string_now "MISSION PASSED~n~Bad Soil" {time} 7000
wait 3500
if 
  $lsdTabs == 0
goto_if_false @Noname_57037
$lsdTabs += 1

:Noname_57037
print_help_formatted "CJ: One of those Vagos had a tab of LSD on him."
wait 4500
print_help_formatted "CJ: I'll see what kind of door this opens."
wait 4500
print_help_formatted "Tyrell: Now we got room. Grove can grow something bigger out here."
wait 4500
print_help_formatted "Tyrell: Give me time and this farm becomes the backbone."
wait 4500
gosub @Noname_57357
goto @Noname_57323

:Noname_57302
print_string_now "You need $1000" {time} 3000

:Noname_57323
goto @Noname_57355

:Noname_57330
print_string_now "Farm already owned" {time} 3000

:Noname_57355
return 

:Noname_57357
if 
  $farmCrewSpawned == 0
goto_if_false @Noname_57919
$farmCrewSpawned = 1
request_model #FAM1
request_model #FAM3
request_model #VEG_PFLOWERS2WEE
request_model #GRASSPLANT

:Noname_57400
  not has_model_loaded #FAM1
goto_if_false @Noname_57422
wait 0
goto @Noname_57400

:Noname_57422
  not has_model_loaded #FAM3
goto_if_false @Noname_57444
wait 0
goto @Noname_57422

:Noname_57444
  not has_model_loaded #VEG_PFLOWERS2WEE
goto_if_false @Noname_57467
wait 0
goto @Noname_57444

:Noname_57467
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_57490
wait 0
goto @Noname_57467

:Noname_57490
$farmWorker1 = create_char PedType.CivMale {modelId} #FAM1 {x} 1041.8 {y} -329.2 {z} 73.985
set_char_heading $farmWorker1 {heading} 160.0
wait 1200
freeze_char_position $farmWorker1 {state} True
$farmWorker2 = create_char PedType.CivMale {modelId} #FAM3 {x} 1039.8 {y} -329.0 {z} 73.985
set_char_heading $farmWorker2 {heading} 160.0
wait 1200
freeze_char_position $farmWorker2 {state} True
$farmPoppyPlant = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -332.1785 {z} 72.985
set_object_scale $farmPoppyPlant {scale} 0.45
$farmPoppyPlant2 = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -334.1785 {z} 72.985
set_object_scale $farmPoppyPlant2 {scale} 0.45
$farmPoppyPlant3 = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -336.1785 {z} 72.985
set_object_scale $farmPoppyPlant3 {scale} 0.45
$farmPoppyPlant4 = create_object #VEG_PFLOWERS2WEE {x} 1044.4471 {y} -338.1785 {z} 72.985
set_object_scale $farmPoppyPlant4 {scale} 0.45
$farmAkPlant = create_object #GRASSPLANT {x} 1042.2 {y} -336.0 {z} 72.985
set_object_scale $farmAkPlant {scale} 0.75
mark_model_as_no_longer_needed #FAM1
mark_model_as_no_longer_needed #FAM3
mark_model_as_no_longer_needed #VEG_PFLOWERS2WEE
mark_model_as_no_longer_needed #GRASSPLANT
if 
  $farmPoppySeeds < 1
goto_if_false @Noname_57790
$farmPoppySeeds = 1

:Noname_57790
if 
  $farmAkSeeds < 1
goto_if_false @Noname_57815
$farmAkSeeds = 1

:Noname_57815
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_57840
gosub @Noname_58158

:Noname_57840
if 
  $farmHarvestReady < 1
goto_if_false @Noname_57873
$farmHarvestReady = 0
set_var_int_to_lvar_int $farmGrowStart = 15@

:Noname_57873
print_string_now "HILLTOP CREW~n~Talk to the Grove worker" {time} 6000

:Noname_57919
return 

:Noname_57921
$farmPatriotSpawned = 1
request_model #PATRIOT

:Noname_57933
  not has_model_loaded #PATRIOT
goto_if_false @Noname_57956
wait 0
goto @Noname_57933

:Noname_57956
$farmPatriot = create_car #PATRIOT {x} 1032.5 {y} -344.5 {z} 73.985
mark_model_as_no_longer_needed #PATRIOT
return 

:Noname_57986
$farmDrugBoxesSpawned = 1
request_model #IMY_BBOX

:Noname_57998
  not has_model_loaded #IMY_BBOX
goto_if_false @Noname_58021
wait 0
goto @Noname_57998

:Noname_58021
$farmDrugBox1 = create_object #IMY_BBOX {x} 1035.8 {y} -339.4 {z} 73.1
$farmDrugBox2 = create_object #IMY_BBOX {x} 1036.6 {y} -339.4 {z} 73.1
$farmDrugBox3 = create_object #IMY_BBOX {x} 1035.8 {y} -340.2 {z} 73.1
$farmDrugBox4 = create_object #IMY_BBOX {x} 1036.6 {y} -340.2 {z} 73.1
mark_model_as_no_longer_needed #IMY_BBOX
print_string_now "HILLTOP FARM~n~Storage expanded" {time} 4000
return 

:Noname_58158
if 
  $farmCocaAutoStarted == 0
goto_if_false @Noname_58294
$farmCocaAutoStarted = 1
$farmCocaSeeds = 1
request_model #GENVEG_BUSH17

:Noname_58195
  not has_model_loaded #GENVEG_BUSH17
goto_if_false @Noname_58218
wait 0
goto @Noname_58195

:Noname_58218
$farmCocaPlant = create_object #GENVEG_BUSH17 {x} 1048.6 {y} -331.3 {z} 72.6
set_object_scale $farmCocaPlant {scale} 0.8
mark_model_as_no_longer_needed #GENVEG_BUSH17
print_string_now "HILLTOP FARM~n~Coca row started" {time} 5000

:Noname_58294
return 

:Noname_58296
if 
  $farmHarvestReady == 1
goto_if_false @Noname_58357
print_string_now "Collect current harvest first" {time} 3000
goto @Noname_58723

:Noname_58357
if 
  $farmAkSeeds > 3
goto_if_false @Noname_58411
print_string_now "AK-47 farm row is full" {time} 3000
goto @Noname_58723

:Noname_58411
if 
  $akSeedPacks > 0
goto_if_false @Noname_58696
$akSeedPacks -= 1
$farmAkSeeds += 1
request_model #GRASSPLANT

:Noname_58448
  not has_model_loaded #GRASSPLANT
goto_if_false @Noname_58471
wait 0
goto @Noname_58448

:Noname_58471
if 
  $farmAkSeeds == 2
goto_if_false @Noname_58522
$farmAkPlant2 = create_object #GRASSPLANT {x} 1042.2 {y} -338.0 {z} 72.985
set_object_scale $farmAkPlant2 {scale} 0.75

:Noname_58522
if 
  $farmAkSeeds == 3
goto_if_false @Noname_58573
$farmAkPlant3 = create_object #GRASSPLANT {x} 1042.2 {y} -340.0 {z} 72.985
set_object_scale $farmAkPlant3 {scale} 0.75

:Noname_58573
if 
  $farmAkSeeds == 4
goto_if_false @Noname_58624
$farmAkPlant4 = create_object #GRASSPLANT {x} 1042.2 {y} -342.0 {z} 72.985
set_object_scale $farmAkPlant4 {scale} 0.75

:Noname_58624
mark_model_as_no_longer_needed #GRASSPLANT
if 
  $farmGrowStart == 0
goto_if_false @Noname_58655
set_var_int_to_lvar_int $farmGrowStart = 15@

:Noname_58655
print_formatted_now "Hilltop AK-47 rows:%d/4" {time} 4000 {args} $farmAkSeeds 
goto @Noname_58723

:Noname_58696
print_string_now "You need AK-47 seeds" {time} 3000

:Noname_58723
return 

:Noname_58725
if 
  $farmHarvestReady == 1
goto_if_false @Noname_58786
print_string_now "Collect current harvest first" {time} 3000
goto @Noname_58966

:Noname_58786
if 
  $farmPoppySeeds > 3
goto_if_false @Noname_58840
print_string_now "Poppy farm row is full" {time} 3000
goto @Noname_58966

:Noname_58840
if 
  $poppySeeds > 0
goto_if_false @Noname_58939
$poppySeeds -= 1
$farmPoppySeeds += 1
if 
  $farmGrowStart == 0
goto_if_false @Noname_58898
set_var_int_to_lvar_int $farmGrowStart = 15@

:Noname_58898
print_formatted_now "Hilltop poppy rows:%d/4" {time} 4000 {args} $farmPoppySeeds 
goto @Noname_58966

:Noname_58939
print_string_now "You need poppy seeds" {time} 3000

:Noname_58966
return 

:Noname_58968
if 
  $mexicanContactTalked == 0
goto_if_false @Noname_59016
print_string_now "Coca rows locked" {time} 3000
goto @Noname_59439

:Noname_59016
if 
  $farmHarvestReady == 1
goto_if_false @Noname_59077
print_string_now "Collect current harvest first" {time} 3000
goto @Noname_59439

:Noname_59077
if 
  $farmCocaSeeds > 3
goto_if_false @Noname_59130
print_string_now "Coca farm row is full" {time} 3000
goto @Noname_59439

:Noname_59130
if 
  $cocaSeeds > 0
goto_if_false @Noname_59413
$cocaSeeds -= 1
request_model #GENVEG_BUSH17

:Noname_59160
  not has_model_loaded #GENVEG_BUSH17
goto_if_false @Noname_59183
wait 0
goto @Noname_59160

:Noname_59183
if 
  $farmCocaAutoStarted == 0
goto_if_false @Noname_59208
gosub @Noname_58158

:Noname_59208
$farmCocaSeeds += 1
if 
  $farmCocaSeeds == 2
goto_if_false @Noname_59266
$farmCocaPlant2 = create_object #GENVEG_BUSH17 {x} 1048.6 {y} -333.3 {z} 72.6
set_object_scale $farmCocaPlant2 {scale} 0.8

:Noname_59266
if 
  $farmCocaSeeds == 3
goto_if_false @Noname_59317
$farmCocaPlant3 = create_object #GENVEG_BUSH17 {x} 1048.6 {y} -335.3 {z} 72.6
set_object_scale $farmCocaPlant3 {scale} 0.8

:Noname_59317
if 
  $farmCocaSeeds == 4
goto_if_false @Noname_59368
$farmCocaPlant4 = create_object #GENVEG_BUSH17 {x} 1048.6 {y} -337.3 {z} 72.6
set_object_scale $farmCocaPlant4 {scale} 0.8

:Noname_59368
mark_model_as_no_longer_needed #GENVEG_BUSH17
print_formatted_now "Hilltop coca rows:%d/4" {time} 4000 {args} $farmCocaSeeds 
goto @Noname_59439

:Noname_59413
print_string_now "You need coca seeds" {time} 3000

:Noname_59439
return 

:Noname_59441
if 
  $farmHarvestReady == 1
goto_if_false @Noname_59814
add_int_var_to_int_var $akWeedGrams += $farmAkReadyGrams
add_int_var_to_int_var $opiumGrams += $farmOpiumReady
add_int_var_to_int_var $cocaLeaves += $farmCocaLeavesReady
add_int_var_to_int_var $cocaSeeds += $farmCocaSeedsReady
print_formatted_now "Hilltop collected~n~AK:%dg Opium:%dg Coca:%dg~n~Coca seeds:+%d" {time} 6000 {args} $farmAkReadyGrams $farmOpiumReady $farmCocaLeavesReady $farmCocaSeedsReady 
if 
  $farmAkSeeds > 1
goto_if_false @Noname_59596
delete_object $farmAkPlant2

:Noname_59596
if 
  $farmAkSeeds > 2
goto_if_false @Noname_59619
delete_object $farmAkPlant3

:Noname_59619
if 
  $farmAkSeeds > 3
goto_if_false @Noname_59642
delete_object $farmAkPlant4

:Noname_59642
if 
  $farmCocaSeeds > 1
goto_if_false @Noname_59665
delete_object $farmCocaPlant2

:Noname_59665
if 
  $farmCocaSeeds > 2
goto_if_false @Noname_59688
delete_object $farmCocaPlant3

:Noname_59688
if 
  $farmCocaSeeds > 3
goto_if_false @Noname_59711
delete_object $farmCocaPlant4

:Noname_59711
$farmAkSeeds = 1
$farmPoppySeeds = 1
if 
  $farmCocaAutoStarted == 1
goto_if_false @Noname_59757
$farmCocaSeeds = 1
goto @Noname_59764

:Noname_59757
$farmCocaSeeds = 0

:Noname_59764
$farmHarvestReady = 0
$farmAkReadyGrams = 0
$farmOpiumReady = 0
$farmCocaLeavesReady = 0
$farmCocaSeedsReady = 0
set_var_int_to_lvar_int $farmGrowStart = 15@
goto @Noname_59846

:Noname_59814
print_string_now "Hilltop harvest not ready" {time} 3000

:Noname_59846
return 

:Noname_59848
if 
  $morganFarmUpgradeBought == 0
goto_if_false @Noname_60413
if 
  $farmOwned == 1
goto_if_false @Noname_60377
if 
  is_score_greater $player1 {money} 2999
goto_if_false @Noname_60349
add_score $player1 {money} -3000
$morganFarmUpgradeBought = 1
print_string_now "MISSION UNLOCKED~n~Better Call Morgan" {time} 6000
wait 3000
print_string_now "PHONE CALL~n~CJ calls Morgan" {time} 4000
wait 3000
print_help_formatted "CJ: Morgan, I got land now. Quiet land."
wait 4000
print_help_formatted "CJ: I know the business, and you know the chemistry."
wait 4500
print_help_formatted "Morgan: Quiet is useful. Dirt is useful. Distance from police is priceless."
wait 5000
print_help_formatted "Morgan: Chemistry is just patience with consequences."
wait 4500
print_help_formatted "Morgan: Clear a corner at the farm. I will bring my tables."
wait 4500
gosub @Noname_60449
goto @Noname_60370

:Noname_60349
print_string_now "You need $3000" {time} 3000

:Noname_60370
goto @Noname_60406

:Noname_60377
print_string_now "Buy Hilltop Farm first" {time} 3000

:Noname_60406
goto @Noname_60447

:Noname_60413
print_string_now "Morgan lab already unlocked" {time} 3000

:Noname_60447
return 

:Noname_60449
if 
  $morganFarmMoved == 0
goto_if_false @Noname_60594
$morganFarmMoved = 1
if 
  $chemistMarker <> -1
goto_if_false @Noname_60504
remove_sphere $chemistMarker
$chemistMarker = -1

:Noname_60504
if 
  $chemistQuestionBlip <> -1
goto_if_false @Noname_60534
remove_blip $chemistQuestionBlip
$chemistQuestionBlip = -1

:Noname_60534
if 
  $chemistBlip <> -1
goto_if_false @Noname_60564
remove_blip $chemistBlip
$chemistBlip = -1

:Noname_60564
if 
  $chemistSpawned == 1
goto_if_false @Noname_60594
delete_char $chemist
$chemistSpawned = 0

:Noname_60594
if 
  $chemistSpawned == 0
goto_if_false @Noname_60980
request_model #WMOSCI
request_model #A51_LABTABLE1_
request_model #DRUG_WHITE

:Noname_60626
  not has_model_loaded #WMOSCI
goto_if_false @Noname_60648
wait 0
goto @Noname_60626

:Noname_60648
  not has_model_loaded #A51_LABTABLE1_
goto_if_false @Noname_60671
wait 0
goto @Noname_60648

:Noname_60671
  not has_model_loaded #DRUG_WHITE
goto_if_false @Noname_60694
wait 0
goto @Noname_60671

:Noname_60694
$chemist = create_char PedType.CivMale {modelId} #WMOSCI {x} 1038.8 {y} -326.5 {z} 73.985
set_char_heading $chemist {heading} 160.0
wait 1000
freeze_char_position $chemist {state} True
$chemistSpawned = 1
$labTable = create_object #A51_LABTABLE1_ {x} 1037.8 {y} -325.6 {z} 73.0
set_object_scale $labTable {scale} 0.7
$labPack1 = create_object #DRUG_WHITE {x} 1037.6 {y} -325.2 {z} 73.54
set_object_scale $labPack1 {scale} 0.55
$labPack2 = create_object #DRUG_WHITE {x} 1038.0 {y} -325.0 {z} 73.54
set_object_scale $labPack2 {scale} 0.55
mark_model_as_no_longer_needed #WMOSCI
mark_model_as_no_longer_needed #A51_LABTABLE1_
mark_model_as_no_longer_needed #DRUG_WHITE
if 
  $chemistBlip == -1
goto_if_false @Noname_60900
$chemistBlip = add_short_range_sprite_blip_for_coord 1037.8 {y} -326.0 {z} 73.985 {sprite} RadarSprite.Cash

:Noname_60900
if 
  $chemistMarker == -1
goto_if_false @Noname_60943
$chemistMarker = add_sphere 1037.8 {y} -326.0 {z} 73.985 {radius} 1.2

:Noname_60943
print_string_now "MORGAN MOVED~n~Farm lab active" {time} 6000

:Noname_60980
return 

:Noname_60982
if 
  $opiumGrams > 0
goto_if_false @Noname_61287
print_help_formatted "Morgan: Bring enough raw material and the lab starts paying for itself."
wait 4500
set_var_int_to_var_int $rewardRoll = $opiumGrams
$rewardRoll *= 2
add_int_var_to_int_var $heroinGrams += $rewardRoll
$morganProcessDeals += 1
print_formatted_now "Farm lab processed %dg heroin" {time} 5000 {args} $rewardRoll 
$opiumGrams = 0
if 
  $morganProcessDeals == 2
goto_if_false @Noname_61219
$morganLsdReady += 3
print_string_now "MORGAN LAB~n~3 LSD tabs ready" {time} 5000

:Noname_61219
if 
  $morganProcessDeals == 4
goto_if_false @Noname_61280
$morganLsdReady += 5
print_string_now "MORGAN LAB~n~5 LSD tabs ready" {time} 5000

:Noname_61280
goto @Noname_61316

:Noname_61287
print_string_now "Bring opium to process" {time} 3000

:Noname_61316
return 

:Noname_61318
if 
  is_score_greater $player1 {money} 59
goto_if_false @Noname_61442
add_score $player1 {money} -60
$lsdTabs += 1
print_help_formatted "Morgan: One tab. Do not confuse small with harmless."
wait 3500
print_string_now "Bought 1 LSD tab" {time} 3000
goto @Noname_61461

:Noname_61442
print_string_now "You need $60" {time} 3000

:Noname_61461
return 

:Noname_61463
if 
  $morganLsdReady > 0
goto_if_false @Noname_61547
add_int_var_to_int_var $lsdTabs += $morganLsdReady
print_formatted_now "Collected %d LSD tabs from Morgan" {time} 5000 {args} $morganLsdReady 
$morganLsdReady = 0
goto @Noname_61566

:Noname_61547
print_string_now "No LSD ready" {time} 3000

:Noname_61566
return 

:Noname_61568
if 
  $cocaLeaves > 0
goto_if_false @Noname_61881
set_var_int_to_var_int $rewardRoll = $cocaLeaves
$rewardRoll *= 2
add_int_var_to_int_var $cocaineGrams += $rewardRoll
$cocaLeaves = 0
if 
  $cocaineBreakthroughDone == 0
goto_if_false @Noname_61844
$cocaineBreakthroughDone = 1
print_string_now "BREAKTHROUGH~n~Cocaine refined" {time} 6000
wait 3000
print_help_formatted "Morgan: That leaf is not a plant anymore. It is leverage."
wait 4500
print_help_formatted "CJ: So this is the next level?"
wait 3500
print_help_formatted "Morgan: This is where product becomes power."
wait 4500

:Noname_61844
print_formatted_now "Refined %dg cocaine" {time} 5000 {args} $rewardRoll 
goto @Noname_61905

:Noname_61881
print_string_now "Bring coca leaves" {time} 3000

:Noname_61905
return 

:Noname_61907
if 
  $smuggleActive == 0
goto_if_false @Noname_63042
if 
  $drugHeat > 99
goto_if_false @Noname_62001
print_string_now "HEAT TOO HIGH~n~Pay a bribe before smuggling" {time} 5000
goto @Noname_63035

:Noname_62001
if 
  $mayaUnlocked == 1
goto_if_false @Noname_63011
if 
  $route1UpgradeBought == 1
goto_if_false @Noname_62396
if 
  $heroinGrams > 19
goto_if_false @Noname_62367
if 
  $cocaineGrams > 9
goto_if_false @Noname_62337
$farmWorkerMenu = 0
$heroinGrams -= 20
$cocaineGrams -= 10
$smuggleLoad = 30
$smuggleCargoType = 3
gosub @Noname_63075
print_string_now "ROUTE 1 UPGRADED~n~Deliver heroin and cocaine" {time} 6000
wait 2500
print_help_formatted "Farm crew: Route one is upgraded. Heroin and coke go in the same truck now."
wait 4500
print_help_formatted "Farm crew: Maya pays better for mixed cargo, but heat comes with it."
goto @Noname_62360

:Noname_62337
print_string_now "Need 10g cocaine" {time} 3000

:Noname_62360
goto @Noname_62389

:Noname_62367
print_string_now "Need 20g heroin" {time} 3000

:Noname_62389
goto @Noname_63004

:Noname_62396
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_62705
if 
  $cocaineGrams > 9
goto_if_false @Noname_62675
$farmWorkerMenu = 0
$cocaineGrams -= 10
$smuggleLoad = 10
$smuggleCargoType = 2
gosub @Noname_63075
print_string_now "COCAINE ROUTE~n~Deliver 10g cocaine to Maya" {time} 6000
wait 2500
print_help_formatted "Farm crew: First coke run goes through Maya. Keep it small, keep it quiet."
wait 4500
print_help_formatted "Farm crew: If this lands clean, we can upgrade route one."
goto @Noname_62698

:Noname_62675
print_string_now "Need 10g cocaine" {time} 3000

:Noname_62698
goto @Noname_63004

:Noname_62705
if 
  $heroinGrams > 19
goto_if_false @Noname_62982
$farmWorkerMenu = 0
$heroinGrams -= 20
$smuggleLoad = 20
$smuggleCargoType = 1
gosub @Noname_63075
print_string_now "SMUGGLING~n~Deliver 20g heroin to Maya" {time} 6000
wait 2500
print_help_formatted "Farm crew: Truck is out front. Twenty grams packed clean."
wait 4000
print_help_formatted "Farm crew: Maya can move product through Market. Drive careful and unload at the dollar marker."
goto @Noname_63004

:Noname_62982
print_string_now "Need 20g heroin" {time} 3000

:Noname_63004
goto @Noname_63035

:Noname_63011
print_string_now "Unlock Maya first" {time} 3000

:Noname_63035
goto @Noname_63073

:Noname_63042
print_string_now "Smuggling already active" {time} 3000

:Noname_63073
return 

:Noname_63075
$smuggleActive = 1
$smuggleRoute = 1
$smuggleStage = 1
$smugglePrompt = 0
request_model #MULE

:Noname_63108
  not has_model_loaded #MULE
goto_if_false @Noname_63131
wait 0
goto @Noname_63108

:Noname_63131
$smuggleTruck = create_car #MULE {x} 1048.5 {y} -327.0 {z} 73.985
mark_model_as_no_longer_needed #MULE
$smuggleBlip = -1
$smuggleMarker = add_sphere 1097.2 {y} -1185.0 {z} 18.0 {radius} 1.6
return 

:Noname_63193
$smuggleActive = 0
$smuggleRoute = 0
$smuggleStage = 0
$smugglePrompt = 0
if 
  $smuggleBlip <> -1
goto_if_false @Noname_63251
remove_blip $smuggleBlip
$smuggleBlip = -1

:Noname_63251
if 
  $smuggleMarker <> -1
goto_if_false @Noname_63281
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_63281
if 
  $smuggleCargoType == 3
goto_if_false @Noname_63751
if 
  $route1TrustedBonus == 1
goto_if_false @Noname_63455
add_score $player1 {money} 16500
$nightlifeRep += 10
$drugHeat += 16
print_string_now "TRUSTED ROUTE COMPLETE~n~Mixed cargo delivered" {time} 6000
gosub @Noname_76539
wait 2500
print_string_now "+$16500~n~+10 Nightlife rep  +16 Heat" {time} 5000
goto @Noname_63744

:Noname_63455
add_score $player1 {money} 15000
$nightlifeRep += 9
$drugHeat += 16
$route1TrustedBonus = 1
print_string_now "ROUTE 1 COMPLETE~n~Trusted route unlocked" {time} 6000
gosub @Noname_76539
wait 2500
print_help_formatted "Maya: Heroin and cocaine in one route. That is how operations grow."
wait 4500
print_help_formatted "Maya: This landed clean. My people trust the Hilltop package now."
wait 4500
print_string_now "+$15000~n~Future Route 1 payout increased" {time} 5000

:Noname_63744
goto @Noname_64275

:Noname_63751
if 
  $smuggleCargoType == 2
goto_if_false @Noname_63992
add_score $player1 {money} 11000
$nightlifeRep += 7
$drugHeat += 12
$route1CocaineDone = 1
print_string_now "COCAINE ROUTE COMPLETE~n~Route upgrade available" {time} 6000
gosub @Noname_76539
wait 2500
print_help_formatted "Maya: Coke moves fast. Tell the farm crew route one can carry more."
wait 4500
print_string_now "+$11000~n~+7 Nightlife rep  +12 Heat" {time} 5000
goto @Noname_64275

:Noname_63992
add_score $player1 {money} 7000
$nightlifeRep += 5
$drugHeat += 8
print_string_now "SMUGGLING COMPLETE~n~Heroin delivered" {time} 6000
gosub @Noname_76539
wait 2500
print_help_formatted "Maya: That is the difference between selling product and moving weight."
wait 4500
print_help_formatted "Maya: Keep the route quiet and this becomes more than hand-to-hand money."
wait 4000
print_string_now "+$7000~n~+5 Nightlife rep  +8 Heat" {time} 5000

:Noname_64275
$smuggleCargoType = 0
return 

:Noname_64284
if 
  $mayaUnlocked == 1
goto_if_false @Noname_64702
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_64668
if 
  $route1CocaineDone == 1
goto_if_false @Noname_64622
if 
  $route1UpgradeBought == 0
goto_if_false @Noname_64584
if 
  is_score_greater $player1 {money} 9999
goto_if_false @Noname_64541
add_score $player1 {money} -10000
$route1UpgradeBought = 1
print_string_now "ROUTE 1 UPGRADED~n~Heroin and cocaine cargo unlocked" {time} 6000
wait 2500
print_help_formatted "Farm crew: We reinforced the route. Maya gets coke and heroin together now."
goto @Noname_64577

:Noname_64541
print_string_now "Need $10000 for route upgrade" {time} 4000

:Noname_64577
goto @Noname_64615

:Noname_64584
print_string_now "Route 1 already upgraded" {time} 3000

:Noname_64615
goto @Noname_64661

:Noname_64622
print_string_now "Complete one cocaine route first" {time} 4000

:Noname_64661
goto @Noname_64695

:Noname_64668
print_string_now "Unlock cocaine first" {time} 3000

:Noname_64695
goto @Noname_64726

:Noname_64702
print_string_now "Unlock Maya first" {time} 3000

:Noname_64726
return 

:Noname_64728
if 
  $smuggleActive == 0
goto_if_false @Noname_65468
if 
  $drugHeat > 99
goto_if_false @Noname_64826
print_string_now "HEAT TOO HIGH~n~Pay a bribe before empire routes" {time} 5000
goto @Noname_65461

:Noname_64826
if 
  $mayaUnlocked == 1
goto_if_false @Noname_65437
if 
  $isaacDiscovered == 1
goto_if_false @Noname_65407
if 
  $growhouseOwned == 1
goto_if_false @Noname_65374
if 
  $heroinGrams > 19
goto_if_false @Noname_65345
if 
  9@ > 49
goto_if_false @Noname_65297
$farmWorkerMenu = 0
$heroinGrams -= 20
$smuggleLoad = 20
$smuggleActive = 1
$smuggleRoute = 2
$smuggleStage = 1
$smuggleCargoType = 0
$smugglePrompt = 0
request_model #MULE

:Noname_64977
  not has_model_loaded #MULE
goto_if_false @Noname_65000
wait 0
goto @Noname_64977

:Noname_65000
$smuggleTruck = create_car #MULE {x} 1048.5 {y} -327.0 {z} 73.985
mark_model_as_no_longer_needed #MULE
$smuggleBlip = -1
$smuggleMarker = add_sphere 2450.5 {y} -949.8 {z} 80.69 {radius} 1.6
print_string_now "EMPIRE ROUTE~n~Drive to the growhouse" {time} 6000
wait 2500
print_help_formatted "Hilltop crew: This is bigger than one drop. Farm product first, Grove product second."
wait 4500
print_help_formatted "Hilltop crew: Stop at the growhouse, load weed, then move through Maya and Isaac."
goto @Noname_65338

:Noname_65297
print_string_now "Need 50g weed for growhouse pickup" {time} 3000

:Noname_65338
goto @Noname_65367

:Noname_65345
print_string_now "Need 20g heroin" {time} 3000

:Noname_65367
goto @Noname_65400

:Noname_65374
print_string_now "Buy growhouse first" {time} 3000

:Noname_65400
goto @Noname_65430

:Noname_65407
print_string_now "Find Isaac first" {time} 3000

:Noname_65430
goto @Noname_65461

:Noname_65437
print_string_now "Unlock Maya first" {time} 3000

:Noname_65461
goto @Noname_65499

:Noname_65468
print_string_now "Smuggling already active" {time} 3000

:Noname_65499
return 

:Noname_65501
if 
  9@ > 49
goto_if_false @Noname_65774
9@ -= 50
$smuggleLoad += 50
if 
  $smuggleMarker <> -1
goto_if_false @Noname_65563
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_65563
if 
  $smuggleBlip <> -1
goto_if_false @Noname_65593
remove_blip $smuggleBlip
$smuggleBlip = -1

:Noname_65593
$smuggleStage = 2
$smugglePrompt = 0
$smuggleBlip = -1
$smuggleMarker = add_sphere 1097.2 {y} -1185.0 {z} 18.0 {radius} 1.6
print_string_now "GROWHOUSE LOADED~n~Deliver to Maya" {time} 5000
wait 2500
print_help_formatted "Tyrell: That is Grove product in the truck. Maya gets the hard package first."
goto @Noname_65794

:Noname_65774
print_string_now "Need 50g weed" {time} 3000

:Noname_65794
return 

:Noname_65796
if 
  $smuggleMarker <> -1
goto_if_false @Noname_65826
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_65826
if 
  $smuggleBlip <> -1
goto_if_false @Noname_65856
remove_blip $smuggleBlip
$smuggleBlip = -1

:Noname_65856
$smuggleStage = 3
$smugglePrompt = 0
$smuggleBlip = -1
$smuggleMarker = add_sphere 368.8 {y} -2045.2 {z} 8.6 {radius} 1.6
print_string_now "MAYA DROP COMPLETE~n~Deliver Grove product to Isaac" {time} 6000
wait 2500
print_help_formatted "Maya: Farm, Grove, beach. Now you are connecting districts, CJ."
return 

:Noname_66035
$smuggleActive = 0
$smuggleRoute = 0
$smuggleStage = 0
$smugglePrompt = 0
if 
  $smuggleBlip <> -1
goto_if_false @Noname_66093
remove_blip $smuggleBlip
$smuggleBlip = -1

:Noname_66093
if 
  $smuggleMarker <> -1
goto_if_false @Noname_66123
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_66123
add_score $player1 {money} 18000
$nightlifeRep += 10
$slingingRepBeach += 10
$drugHeat += 18
$empirePhaseUnlocked = 1
print_string_now "EMPIRE ROUTE COMPLETE~n~+$18000" {time} 6000
gosub @Noname_76539
wait 3000
print_help_formatted "Isaac: This ain't hustling anymore. This is supply."
wait 4000
print_help_formatted "CJ: Farm to Grove, Grove to Market, Market to the beach. We got a line now."
wait 4500
print_string_now "EMPIRE PHASE UNLOCKED" {time} 7000
wait 3500
gosub @Noname_66397
return 

:Noname_66397
if 
  $empireSupplierCallDone == 0
goto_if_false @Noname_66742
$empireSupplierCallDone = 1
print_string_now "PHONE CALL~n~Supplier" {time} 4000
wait 2500
print_help_formatted "Supplier: CJ, listen. A Mexican friend of mine is leaving Los Santos tonight."
wait 5000
print_help_formatted "Supplier: Police are leaning on him hard. He has something strange with him."
wait 5000
print_help_formatted "Supplier: Find him near Unity Station before he disappears. Whatever he gives you, keep it quiet."
wait 5000
gosub @Noname_66744

:Noname_66742
return 

:Noname_66744
if 
  $mexicanContactSpawned == 0
goto_if_false @Noname_66863
$mexicanContactSpawned = 1
$mexicanContactActorSpawned = 0
$mexicanBlip = add_short_range_sprite_blip_for_coord 1692.0 {y} -1955.0 {z} 13.5 {sprite} RadarSprite.Qmark
$mexicanMarker = add_sphere 1692.0 {y} -1955.0 {z} 13.5 {radius} 1.2
print_string_now "NEW LEAD~n~Mystery contact marked" {time} 6000

:Noname_66863
return 

:Noname_66865
if 
  $mexicanContactActorSpawned == 0
goto_if_false @Noname_66966
$mexicanContactActorSpawned = 1
request_model #HMYDRUG

:Noname_66894
  not has_model_loaded #HMYDRUG
goto_if_false @Noname_66916
wait 0
goto @Noname_66894

:Noname_66916
$mexicanContact = create_char PedType.CivMale {modelId} #HMYDRUG {x} 1692.0 {y} -1955.0 {z} 13.5
set_char_heading $mexicanContact {heading} 90.0
wait 800
freeze_char_position $mexicanContact {state} True
mark_model_as_no_longer_needed #HMYDRUG

:Noname_66966
return 

:Noname_66968
$mexicanContactTalked = 1
$mexicanPrompt = 0
print_help_formatted "Mexican: I do not know you, and that is why this might work."
wait 4500
print_help_formatted "CJ: Supplier said you had something for me."
wait 4000
print_help_formatted "Mexican: One seed. Do not ask the name. Plant it somewhere quiet."
wait 5000
print_help_formatted "Mexican: If it grows, you will know why people are chasing me."
wait 4500
if 
  $mysterySeeds < 1
goto_if_false @Noname_67284
$mysterySeeds = 1
goto @Noname_67291

:Noname_67284
$mysterySeeds += 1

:Noname_67291
print_formatted_now "MYSTERY SEED ACQUIRED~n~Mystery seeds:%d~n~Press TAB+K to plant" {time} 6000 {args} $mysterySeeds 
if 
  $mexicanBlip <> -1
goto_if_false @Noname_67395
remove_blip $mexicanBlip
$mexicanBlip = -1

:Noname_67395
if 
  $mexicanMarker <> -1
goto_if_false @Noname_67425
remove_sphere $mexicanMarker
$mexicanMarker = -1

:Noname_67425
freeze_char_position $mexicanContact {state} False
return 

:Noname_67434
if 
  $poppyPlanted == 0
goto_if_false @Noname_67739
if 
  $poppySeeds > 0
goto_if_false @Noname_67702
$poppySeeds -= 1
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 7000
wait 7000
remove_animation "BOMBER"
$poppyX, $poppyY, $poppyZ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$poppyZ -= 1.1
request_model #VEG_PFLOWERS2WEE

:Noname_67591
  not has_model_loaded #VEG_PFLOWERS2WEE
goto_if_false @Noname_67614
wait 0
goto @Noname_67591

:Noname_67614
$poppyPlant = create_object #VEG_PFLOWERS2WEE {x} $poppyX {y} $poppyY {z} $poppyZ
set_object_scale $poppyPlant {scale} 0.12
mark_model_as_no_longer_needed #VEG_PFLOWERS2WEE
$poppyPlanted = 1
$poppyReady = 0
$poppyStage = 1
set_var_int_to_lvar_int $poppyStart = 15@
print_string_now "Poppy planted" {time} 4000
goto @Noname_67732

:Noname_67702
print_string_now "You have no poppy seeds" {time} 3000

:Noname_67732
goto @Noname_67776

:Noname_67739
print_string_now "You already have poppy growing" {time} 3000

:Noname_67776
return 

:Noname_67778
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 7000
wait 7000
remove_animation "BOMBER"
if 
  $poppyBlip <> -1
goto_if_false @Noname_67878
remove_blip $poppyBlip
$poppyBlip = -1

:Noname_67878
delete_object $poppyPlant
$opiumGrams += 40
$poppyPlanted = 0
$poppyReady = 0
$poppyStage = 0
$poppyPrompt = 0
print_string_now "Harvested 40g opium" {time} 5000
if 
  $chemistCallDone == 0
goto_if_false @Noname_68386
$chemistUnlocked = 1
print_string_now "PHONE CALL~n~CJ calls the chemist" {time} 4000
wait 3000
print_help_formatted "CJ: I heard you know what to do with raw opium."
wait 4000
print_help_formatted "Chemist: I know what people should not ask me about on a phone."
wait 4500
print_help_formatted "Chemist: Hills above Rodeo. Follow the wall up from the road."
wait 4000
print_help_formatted "Chemist: Get close and look for the sign. Bring product. Come alone."
wait 4000
$chemistCallDone = 1
if 
  $chemistQuestionBlip == -1
goto_if_false @Noname_68340
$chemistQuestionBlip = add_short_range_sprite_blip_for_coord 475.1535 {y} -1143.6329 {z} 68.5578 {sprite} RadarSprite.Qmark

:Noname_68340
print_string_now "CHEMIST CLUE~n~Hills above Rodeo" {time} 6000
goto @Noname_68420

:Noname_68386
print_string_now "Morgan is marked on the map" {time} 5000

:Noname_68420
return 

:Noname_68422
if 
  $cocaPlanted == 0
goto_if_false @Noname_68805
if 
  $mysterySeeds > 0
goto_if_false @Noname_68506
$mysterySeeds -= 1
gosub @Noname_68843
print_string_now "Mystery seed planted" {time} 4000
goto @Noname_68798

:Noname_68506
if 
  $cocaSeeds > 0
goto_if_false @Noname_68569
$cocaSeeds -= 1
gosub @Noname_68843
print_string_now "Coca seed planted" {time} 4000
goto @Noname_68798

:Noname_68569
if 
  $mexicanContactTalked == 1
goto_if_false @Noname_68758
if 
  $cocaLeaves < 1
goto_if_false @Noname_68711
if 
  $cocaineBreakthroughDone == 0
goto_if_false @Noname_68664
gosub @Noname_68843
print_string_now "Mystery seed planted" {time} 4000
goto @Noname_68704

:Noname_68664
print_string_now "You have no mystery or coca seeds" {time} 3000

:Noname_68704
goto @Noname_68751

:Noname_68711
print_string_now "You have no mystery or coca seeds" {time} 3000

:Noname_68751
goto @Noname_68798

:Noname_68758
print_string_now "You have no mystery or coca seeds" {time} 3000

:Noname_68798
goto @Noname_68841

:Noname_68805
print_string_now "You already have coca growing" {time} 3000

:Noname_68841
return 

:Noname_68843
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 7000
wait 7000
remove_animation "BOMBER"
$cocaX, $cocaY, $cocaZ = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$cocaZ -= 2.8
15@ = get_game_timer 
request_model #GENVEG_BUSH17

:Noname_68962
  not has_model_loaded #GENVEG_BUSH17
goto_if_false @Noname_68985
wait 0
goto @Noname_68962

:Noname_68985
$cocaPlant = create_object #GENVEG_BUSH17 {x} $cocaX {y} $cocaY {z} $cocaZ
set_object_scale $cocaPlant {scale} 0.25
mark_model_as_no_longer_needed #GENVEG_BUSH17
$cocaPlanted = 1
$cocaReady = 0
$cocaStage = 1
set_var_int_to_lvar_int $cocaStart = 15@
$cocaStart += 1
$cocaGrowTicks = 0
return 

:Noname_69062
delete_object $cocaPlant
$cocaZ += 0.5
request_model #GENVEG_BUSH17

:Noname_69082
  not has_model_loaded #GENVEG_BUSH17
goto_if_false @Noname_69105
wait 0
goto @Noname_69082

:Noname_69105
$cocaPlant = create_object #GENVEG_BUSH17 {x} $cocaX {y} $cocaY {z} $cocaZ
set_object_scale $cocaPlant {scale} 0.45
mark_model_as_no_longer_needed #GENVEG_BUSH17
$cocaStage = 2
print_string_now "Mystery plant is growing" {time} 3000
return 

:Noname_69177
delete_object $cocaPlant
$cocaZ += 0.5
request_model #GENVEG_BUSH17

:Noname_69197
  not has_model_loaded #GENVEG_BUSH17
goto_if_false @Noname_69220
wait 0
goto @Noname_69197

:Noname_69220
$cocaPlant = create_object #GENVEG_BUSH17 {x} $cocaX {y} $cocaY {z} $cocaZ
set_object_scale $cocaPlant {scale} 0.65
mark_model_as_no_longer_needed #GENVEG_BUSH17
$cocaStage = 3
$cocaReady = 1
$cocaBlip = add_blip_for_object $cocaPlant
change_blip_colour $cocaBlip {color} BlipColor.Blue
change_blip_display $cocaBlip {display} BlipDisplay.Both
print_string_now "COCA PLANT READY~n~Harvest possible" {time} 5000
return 

:Noname_69332
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 6000
wait 6000
remove_animation "BOMBER"
$cocaLeaves += 40
$cocaSeeds += 2
if 
  $cocaBlip <> -1
goto_if_false @Noname_69446
remove_blip $cocaBlip
$cocaBlip = -1

:Noname_69446
delete_object $cocaPlant
$cocaPlanted = 0
$cocaReady = 0
$cocaStage = 0
$cocaPrompt = 0
$cocaGrowTicks = 0
print_string_now "COCA HARVESTED~n~40 leaves, 2 seeds" {time} 6000
wait 3000
print_string_now "Bring coca leaves to Morgan" {time} 5000
return 

:Noname_69569
$chemistSpawned = 1
request_model #WMOSCI

:Noname_69580
  not has_model_loaded #WMOSCI
goto_if_false @Noname_69602
wait 0
goto @Noname_69580

:Noname_69602
$chemist = create_char PedType.CivMale {modelId} #WMOSCI {x} 475.1535 {y} -1143.6329 {z} 68.5578
set_char_heading $chemist {heading} 94.0
wait 1000
freeze_char_position $chemist {state} True
mark_model_as_no_longer_needed #WMOSCI
return 

:Noname_69654
if 
  $chemistBlip == -1
goto_if_false @Noname_69978
if 
  $chemistQuestionBlip <> -1
goto_if_false @Noname_69702
remove_blip $chemistQuestionBlip
$chemistQuestionBlip = -1

:Noname_69702
$chemistBlip = add_short_range_sprite_blip_for_coord 473.8 {y} -1143.4 {z} 68.5578 {sprite} RadarSprite.Cash
print_string_now "CHEMIST MARKED~n~Dollar marker added" {time} 4000
wait 1500
print_help_formatted "Chemist: You found the right door. That means somebody trusts you, or wants you tested."
wait 4500
print_help_formatted "CJ: You the chemist?"
wait 3000
print_help_formatted "Morgan: Name is Morgan."
wait 3000
print_help_formatted "Morgan: I make bad ideas profitable."
wait 3500

:Noname_69978
if 
  $chemistQuestionBlip <> -1
goto_if_false @Noname_69920
remove_blip $chemistQuestionBlip
$chemistQuestionBlip = -1

:Noname_69920
if 
  $chemistBlip == -1
goto_if_false @Noname_69950
$chemistBlip = add_short_range_sprite_blip_for_coord 473.8 {y} -1143.4 {z} 68.5578 {sprite} RadarSprite.Cash

:Noname_69950
if 
  $opiumGrams > 0
goto_if_false @Noname_70221
print_help_formatted "Chemist: Crude work, but the plant does not lie."
wait 4000
print_help_formatted "Chemist: I will refine it. Do not ask what happens in the room."
wait 4500
set_var_int_to_var_int $rewardRoll = $opiumGrams
if 
  $morganFarmMoved == 1
goto_if_false @Noname_70160
$rewardRoll *= 2

:Noname_70160
add_int_var_to_int_var $heroinGrams += $rewardRoll
print_formatted_now "Chemist processed %dg heroin" {time} 5000 {args} $rewardRoll 
$opiumGrams = 0
goto @Noname_70289

:Noname_70221
print_help_formatted "Chemist: Do not waste my evening unless you brought opium."
wait 3500

:Noname_70289
return 

:Noname_70291
if 
  $mission5Started == 1
goto_if_false @Noname_70429
if 
  $mission6Started == 0
goto_if_false @Noname_70429
$mission6Started = 1
$mission6SoldGrams = 0
print_string_now "MISSION VI~n~Slinging" {time} 4000
wait 1500
print_string_now "OBJECTIVE~n~Sell 100g AK-47 at Santa Maria Beach" {time} 5000

:Noname_70429
return 

:Noname_70431
gosub @Noname_70291
if 
  $akWeedGrams > 0
goto_if_false @Noname_70571
$akWeedGrams -= 1
if 
  $mission6Started == 1
goto_if_false @Noname_70488
$mission6SoldGrams += 1

:Noname_70488
$slingSalePrice = 14
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 14
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold 1g AK-47 for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_54645
goto @Noname_70594

:Noname_70571
print_string_now "Not enough AK-47" {time} 3000

:Noname_70594
return 

:Noname_70596
gosub @Noname_70291
if 
  $akWeedGrams > 4
goto_if_false @Noname_70736
$akWeedGrams -= 5
if 
  $mission6Started == 1
goto_if_false @Noname_70653
$mission6SoldGrams += 5

:Noname_70653
$slingSalePrice = 70
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 70
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold 5g AK-47 for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_54645
goto @Noname_70759

:Noname_70736
print_string_now "Not enough AK-47" {time} 3000

:Noname_70759
return 

:Noname_70761
gosub @Noname_70291
if 
  $akWeedGrams > 19
goto_if_false @Noname_70904
$akWeedGrams -= 20
if 
  $mission6Started == 1
goto_if_false @Noname_70818
$mission6SoldGrams += 20

:Noname_70818
$slingSalePrice = 280
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 280
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold 20g AK-47 for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_54645
goto @Noname_70927

:Noname_70904
print_string_now "Not enough AK-47" {time} 3000

:Noname_70927
return 

:Noname_70929
if 
  $ecstasyPills > 0
goto_if_false @Noname_71036
$ecstasyPills -= 1
$slingSalePrice = 20
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 20
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold ecstasy for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_54645
goto @Noname_71053

:Noname_71036
print_string_now "No ecstasy" {time} 3000

:Noname_71053
return 

:Noname_71055
if 
  $heroinGrams > 0
goto_if_false @Noname_71204
$heroinGrams -= 1
$slingSalePrice = 60
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 60
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold heroin for $%d" {time} 3000 {args} $slingSalePrice 
if 
  $mission8Unlocked == 0
goto_if_false @Noname_71190
if 
  $mission8Started == 0
goto_if_false @Noname_71190
$mission8Unlocked = 1

:Noname_71190
gosub @Noname_54645
goto @Noname_71220

:Noname_71204
print_string_now "No heroin" {time} 3000

:Noname_71220
return 

:Noname_71222
if 
  $opiumGrams > 0
goto_if_false @Noname_71327
$opiumGrams -= 1
$slingSalePrice = 35
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 35
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold opium for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_54645
goto @Noname_71342

:Noname_71327
print_string_now "No opium" {time} 3000

:Noname_71342
return 

:Noname_71344
if 
  $cocaineGrams > 0
goto_if_false @Noname_71453
$cocaineGrams -= 1
$slingSalePrice = 160
mult_int_var_by_int_var $slingSalePrice *= $slingingRepBeach
$slingSalePrice /= 100
$slingSalePrice += 160
add_score $player1 {money} $slingSalePrice
print_formatted_now "Sold cocaine for $%d" {time} 3000 {args} $slingSalePrice 
gosub @Noname_54645
goto @Noname_71470

:Noname_71453
print_string_now "No cocaine" {time} 3000

:Noname_71470
return 

:Noname_71472
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 5000
wait 5000
remove_animation "BOMBER"
$akWeedGrams += 80
print_formatted_now "Harvested 80g AK-47" {time} 5000
$mission3Harvested += 1
return 

:Noname_71585
$hillPrompt1 = 0
gosub @Noname_71472
remove_blip $hillPlantBlip1
delete_object $hillPlant1
$hillPlantDone1 = 1
return 

:Noname_71618
$hillPrompt2 = 0
gosub @Noname_71472
remove_blip $hillPlantBlip2
delete_object $hillPlant2
$hillPlantDone2 = 1
return 

:Noname_71651
$hillPrompt3 = 0
gosub @Noname_71472
remove_blip $hillPlantBlip3
delete_object $hillPlant3
$hillPlantDone3 = 1
return 

:Noname_71684
$hillPrompt4 = 0
gosub @Noname_71472
remove_blip $hillPlantBlip4
delete_object $hillPlant4
$hillPlantDone4 = 1
return 

:Noname_71717
print_string_now "UNKNOWN CONTACT" {time} 3000
wait 2500
print_help_formatted "Contact: I see opportunity in you, CJ."
wait 3500
print_help_formatted "Contact: You are making noise, but noise can be useful."
wait 4000
print_help_formatted "Contact: Pay the right cash and I can look after things at the department."
wait 4500
print_help_formatted "Contact: Small bribe is cheap. Medium is safer. Large clears real heat."
wait 4500
print_string_now "BRIBES UNLOCKED~n~1 small 2 medium 3 large" {time} 6000
$palominoContactTalked = 1
$palominoPrompt = 0
return 

:Noname_72087
if 
  is_score_greater $player1 {money} 249
goto_if_false @Noname_72197
add_score $player1 {money} -250
$drugHeat -= 5
if 
  $drugHeat < 0
goto_if_false @Noname_72146
$drugHeat = 0

:Noname_72146
gosub @Noname_76539
print_formatted_now "Small bribe paid~n~Heat:%d" {time} 4000 {args} $drugHeat 
goto @Noname_72220

:Noname_72197
print_string_now "Not enough money" {time} 3000

:Noname_72220
return 

:Noname_72222
if 
  is_score_greater $player1 {money} 749
goto_if_false @Noname_72333
add_score $player1 {money} -750
$drugHeat -= 15
if 
  $drugHeat < 0
goto_if_false @Noname_72281
$drugHeat = 0

:Noname_72281
gosub @Noname_76539
print_formatted_now "Medium bribe paid~n~Heat:%d" {time} 4000 {args} $drugHeat 
goto @Noname_72356

:Noname_72333
print_string_now "Not enough money" {time} 3000

:Noname_72356
return 

:Noname_72358
if 
  is_score_greater $player1 {money} 1499
goto_if_false @Noname_72468
add_score $player1 {money} -1500
$drugHeat -= 30
if 
  $drugHeat < 0
goto_if_false @Noname_72417
$drugHeat = 0

:Noname_72417
gosub @Noname_76539
print_formatted_now "Large bribe paid~n~Heat:%d" {time} 4000 {args} $drugHeat 
goto @Noname_72491

:Noname_72468
print_string_now "Not enough money" {time} 3000

:Noname_72491
return 

:Noname_72493
if 
  $planted1 == 0
goto_if_false @Noname_72783
8@ -= 1
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
wait 10000
remove_animation "BOMBER"
$plant1X, $plant1Y, $plant1Z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$plant1Z -= 1.4
$planted1 = 1
$plantType1 = 1
$plantReady1 = 0
$growStage1 = 0
$harvestPrompt1 = 0
set_var_int_to_lvar_int $plantStart1 = 15@
print_string_now "Cannabis planted successfully" {time} 4000
if 
  11@ == 2
goto_if_false @Noname_72776
11@ = 3
print_string_now "OBJECTIVE~n~Wait for the plant to grow" {time} 5000

:Noname_72776
goto @Noname_73174

:Noname_72783
if 
  $planted2 == 0
goto_if_false @Noname_73136
if 
  18@ > 1
goto_if_false @Noname_73091
8@ -= 1
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
wait 10000
remove_animation "BOMBER"
$plant2X, $plant2Y, $plant2Z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$plant2Z -= 1.4
$planted2 = 1
$plantType2 = 1
$plantReady2 = 0
$growStage2 = 0
$harvestPrompt2 = 0
set_var_int_to_lvar_int $plantStart2 = 15@
print_string_now "Cannabis planted successfully" {time} 4000
if 
  11@ == 2
goto_if_false @Noname_73084
11@ = 3
print_string_now "OBJECTIVE~n~Wait for the plant to grow" {time} 5000

:Noname_73084
goto @Noname_73129

:Noname_73091
print_string_now "You cannot grow more plants yet" {time} 3000

:Noname_73129
goto @Noname_73174

:Noname_73136
print_string_now "You cannot grow more plants yet" {time} 3000

:Noname_73174
return 

:Noname_73176
if 
  $planted1 == 0
goto_if_false @Noname_73389
$akSeedPacks -= 1
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
wait 10000
remove_animation "BOMBER"
$plant1X, $plant1Y, $plant1Z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$plant1Z -= 1.4
$planted1 = 1
$plantType1 = 2
$plantReady1 = 0
$growStage1 = 0
$harvestPrompt1 = 0
set_var_int_to_lvar_int $plantStart1 = 15@
print_string_now "AK-47 cannabis planted" {time} 4000
goto @Noname_73703

:Noname_73389
if 
  $planted2 == 0
goto_if_false @Noname_73665
if 
  18@ > 1
goto_if_false @Noname_73620
$akSeedPacks -= 1
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
wait 10000
remove_animation "BOMBER"
$plant2X, $plant2Y, $plant2Z = get_offset_from_char_in_world_coords $scplayer {xOffset} 0.0 {yOffset} 1.0 {zOffset} 0.0
$plant2Z -= 1.4
$planted2 = 1
$plantType2 = 2
$plantReady2 = 0
$growStage2 = 0
$harvestPrompt2 = 0
set_var_int_to_lvar_int $plantStart2 = 15@
print_string_now "AK-47 cannabis planted" {time} 4000
goto @Noname_73658

:Noname_73620
print_string_now "You cannot grow more plants yet" {time} 3000

:Noname_73658
goto @Noname_73703

:Noname_73665
print_string_now "You cannot grow more plants yet" {time} 3000

:Noname_73703
return 

:Noname_73705
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
wait 10000
remove_animation "BOMBER"
if 
  $plantBlip1 <> -1
goto_if_false @Noname_73798
remove_blip $plantBlip1

:Noname_73798
delete_object $weedPlant1
if 
  $plantType1 == 2
goto_if_false @Noname_74075
$akWeedGrams += 75
if 
  $mission4Started == 1
goto_if_false @Noname_74042
if 
  $mission4Complete == 0
goto_if_false @Noname_74009
$mission4AkHarvested += 1
print_formatted_now "Harvested 75g AK-47~n~Mission IV progress:%d/2" {time} 5000 {args} $mission4AkHarvested 
if 
  $mission4AkHarvested > 1
goto_if_false @Noname_74002
$mission4Complete = 1
print_string_now "MISSION PASSED~n~AK-47 Reserve" {time} 6000
wait 3500
gosub @Noname_45294

:Noname_74002
goto @Noname_74035

:Noname_74009
print_string_now "Harvested 75g AK-47" {time} 4000

:Noname_74035
goto @Noname_74068

:Noname_74042
print_string_now "Harvested 75g AK-47" {time} 4000

:Noname_74068
goto @Noname_74521

:Noname_74075
9@ += 50
$regularHarvestedGrams += 50
$harvestedCrops += 1
if 
  $mission2Complete == 0
goto_if_false @Noname_74268
if 
  $mission2Ready == 0
goto_if_false @Noname_74146
$mission2Ready = 1
goto @Noname_74171

:Noname_74146
if 
  $mission2Ready == 1
goto_if_false @Noname_74171
$mission2Ready = 2

:Noname_74171
print_formatted_now "Harvested 50g weed~n~Total regular harvested: %dg~n~Mission II progress:%d/2" {time} 5000 {args} $regularHarvestedGrams $mission2Ready 
goto @Noname_74521

:Noname_74268
if 
  $mission3Unlocked == 0
goto_if_false @Noname_74496
if 
  $mission3Ready == 0
goto_if_false @Noname_74318
$mission3Ready = 1
goto @Noname_74357

:Noname_74318
if 
  $mission3Ready == 1
goto_if_false @Noname_74350
$mission3Ready = 2
goto @Noname_74357

:Noname_74350
$mission3Ready = 3

:Noname_74357
print_formatted_now "Harvested 50g weed~n~Mission III progress:%d/3" {time} 5000 {args} $mission3Ready 
if 
  $mission3Ready == 3
goto_if_false @Noname_74489
$mission3Unlocked = 1
print_string_now "MISSION III UNLOCKED~n~Talk to the supplier" {time} 6000

:Noname_74489
goto @Noname_74521

:Noname_74496
print_string_now "Harvested 50g weed" {time} 4000

:Noname_74521
$planted1 = 0
$plantReady1 = 0
$growStage1 = 0
$harvestPrompt1 = 0
$plantType1 = 0
$plantBlip1 = -1
if 
  $mission2Ready == 2
goto_if_false @Noname_74695
if 
  $mission2Complete == 0
goto_if_false @Noname_74695
if 
  $mission2Started == 0
goto_if_false @Noname_74695
$mission2Unlocked = 1
18@ = 2
print_string_now "MISSION II AVAILABLE~n~Return to the supplier and press T" {time} 6000

:Noname_74695
if 
  11@ == 3
goto_if_false @Noname_74945
11@ = 4
print_help_formatted "CJ remembers an uncle of an old Grove friend who likes weed."
wait 3500
print_help_formatted "He lives near the big tall complexes with yards near Grove Street."
wait 4000
print_help_formatted "He might buy what you harvested."
wait 3500
print_string_now "OBJECTIVE~n~Sell the marijuana" {time} 5000

:Noname_74945
return 

:Noname_74947
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 10000
wait 10000
remove_animation "BOMBER"
if 
  $plantBlip2 <> -1
goto_if_false @Noname_75040
remove_blip $plantBlip2

:Noname_75040
delete_object $weedPlant2
if 
  $plantType2 == 2
goto_if_false @Noname_75317
$akWeedGrams += 75
if 
  $mission4Started == 1
goto_if_false @Noname_75284
if 
  $mission4Complete == 0
goto_if_false @Noname_75251
$mission4AkHarvested += 1
print_formatted_now "Harvested 75g AK-47~n~Mission IV progress:%d/2" {time} 5000 {args} $mission4AkHarvested 
if 
  $mission4AkHarvested > 1
goto_if_false @Noname_75244
$mission4Complete = 1
print_string_now "MISSION PASSED~n~AK-47 Reserve" {time} 6000
wait 3500
gosub @Noname_45294

:Noname_75244
goto @Noname_75277

:Noname_75251
print_string_now "Harvested 75g AK-47" {time} 4000

:Noname_75277
goto @Noname_75310

:Noname_75284
print_string_now "Harvested 75g AK-47" {time} 4000

:Noname_75310
goto @Noname_75763

:Noname_75317
9@ += 50
$regularHarvestedGrams += 50
$harvestedCrops += 1
if 
  $mission2Complete == 0
goto_if_false @Noname_75510
if 
  $mission2Ready == 0
goto_if_false @Noname_75388
$mission2Ready = 1
goto @Noname_75413

:Noname_75388
if 
  $mission2Ready == 1
goto_if_false @Noname_75413
$mission2Ready = 2

:Noname_75413
print_formatted_now "Harvested 50g weed~n~Total regular harvested: %dg~n~Mission II progress:%d/2" {time} 5000 {args} $regularHarvestedGrams $mission2Ready 
goto @Noname_75763

:Noname_75510
if 
  $mission3Unlocked == 0
goto_if_false @Noname_75738
if 
  $mission3Ready == 0
goto_if_false @Noname_75560
$mission3Ready = 1
goto @Noname_75599

:Noname_75560
if 
  $mission3Ready == 1
goto_if_false @Noname_75592
$mission3Ready = 2
goto @Noname_75599

:Noname_75592
$mission3Ready = 3

:Noname_75599
print_formatted_now "Harvested 50g weed~n~Mission III progress:%d/3" {time} 5000 {args} $mission3Ready 
if 
  $mission3Ready == 3
goto_if_false @Noname_75731
$mission3Unlocked = 1
print_string_now "MISSION III UNLOCKED~n~Talk to the supplier" {time} 6000

:Noname_75731
goto @Noname_75763

:Noname_75738
print_string_now "Harvested 50g weed" {time} 4000

:Noname_75763
$planted2 = 0
$plantReady2 = 0
$growStage2 = 0
$harvestPrompt2 = 0
$plantType2 = 0
$plantBlip2 = -1
if 
  $mission2Ready == 2
goto_if_false @Noname_75937
if 
  $mission2Complete == 0
goto_if_false @Noname_75937
if 
  $mission2Started == 0
goto_if_false @Noname_75937
$mission2Unlocked = 1
18@ = 2
print_string_now "MISSION II AVAILABLE~n~Return to the supplier and press T" {time} 6000

:Noname_75937
if 
  11@ == 3
goto_if_false @Noname_76187
11@ = 4
print_help_formatted "CJ remembers an uncle of an old Grove friend who likes weed."
wait 3500
print_help_formatted "He lives near the big tall complexes with yards near Grove Street."
wait 4000
print_help_formatted "He might buy what you harvested."
wait 3500
print_string_now "OBJECTIVE~n~Sell the marijuana" {time} 5000

:Noname_76187
return 

:Noname_76189
if 
  12@ == 0
goto_if_false @Noname_76422
if 
  11@ == 4
goto_if_false @Noname_76397
12@ = 1
print_help_formatted "This stuff isn't terrible, but it's low-grade."
wait 3000
print_help_formatted "Nobody's paying top dollar for this quality."
wait 3000
print_string_now "Unlock better strains through progression" {time} 5000
goto @Noname_76422

:Noname_76397
if 
  11@ > 4
goto_if_false @Noname_76422
12@ = 1

:Noname_76422
if 
  11@ == 4
goto_if_false @Noname_76484
11@ = 5
print_string_now "MISSION PASSED~n~First Harvest" {time} 5000

:Noname_76484
return 

:Noname_76486
if 
  $akFirstSaleCallShown == 0
goto_if_false @Noname_76537
if 
  $akFirstSaleCallPending == 0
goto_if_false @Noname_76537
$akFirstSaleCallPending = 1
set_var_int_to_lvar_int $akSaleCallStart = 15@

:Noname_76537
return 

:Noname_76539
if 
  $drugHeat > 99
goto_if_false @Noname_76725
if 
  25@ < 4
goto_if_false @Noname_76723
25@ = 4
print_string_now "HEAT CRITICAL~n~Customers avoid you and routes stop" {time} 6000
wait 2500
print_help_formatted "Word is moving too fast. Pay the Palomino contact before pushing product."

:Noname_76723
return 

:Noname_76725
if 
  $drugHeat > 74
goto_if_false @Noname_76819
if 
  25@ < 3
goto_if_false @Noname_76817
25@ = 3
print_string_now "HEAT HIGH~n~Smuggling is getting dangerous" {time} 5000

:Noname_76817
return 

:Noname_76819
if 
  $drugHeat > 49
goto_if_false @Noname_76918
if 
  25@ < 2
goto_if_false @Noname_76916
25@ = 2
print_string_now "HEAT RISING~n~People are noticing the operation" {time} 5000

:Noname_76916
return 

:Noname_76918
if 
  $drugHeat > 24
goto_if_false @Noname_77007
if 
  25@ < 1
goto_if_false @Noname_77005
25@ = 1
print_string_now "HEAT NOTICE~n~Keep the business quiet" {time} 4000

:Noname_77005
return 

:Noname_77007
if 
  25@ > 0
goto_if_false @Noname_77073
25@ = 0
print_string_now "HEAT LOW~n~Business can move again" {time} 4000

:Noname_77073
return 

:Noname_77075
$myronIntroCallDone = 1
$myronPhoneUnlocked = 1
wait 2000
print_string_now "PHONE CALL" {time} 3000
wait 2500
print_help_formatted "Uncle: CJ, word says you are not just selling bags anymore."
wait 4500
print_help_formatted "Uncle: Bigger leagues bring bigger eyes. I know a man named Myron."
wait 4500
print_help_formatted "Uncle: Public phone by Jefferson Motel. Call him there. No house phones."
wait 4500
$myronBlip = add_short_range_sprite_blip_for_coord 2259.2998 {y} -1211.9023 {z} 23.9687 {sprite} RadarSprite.Qmark
$myronMarker = add_sphere 2259.2998 {y} -1211.9023 {z} 23.9687 {radius} 1.3
print_string_now "NEW CONTACT~n~Call Myron at Jefferson Motel" {time} 6000
return 

:Noname_77442
$myronPhoneComplete = 1
$myronPrompt = 0
if 
  $myronBlip <> -1
goto_if_false @Noname_77486
remove_blip $myronBlip
$myronBlip = -1

:Noname_77486
if 
  $myronMarker <> -1
goto_if_false @Noname_77516
remove_sphere $myronMarker
$myronMarker = -1

:Noname_77516
print_string_now "CALLING MYRON" {time} 3000
wait 2500
print_help_formatted "CJ: Myron? Uncle said you could help move weight."
wait 4500
print_help_formatted "Myron: Help is a loud word. I arrange quiet people."
wait 4500
print_help_formatted "Myron: Ecstasy, LSD, raw opium. Bigger packs, not street handfuls."
wait 5000
print_help_formatted "Myron: You call this phone, I send a man. He collects, you get paid."
wait 5000
print_help_formatted "CJ: Long as your man ain't bringing heat to my door."
wait 4500
print_help_formatted "Myron: Then keep your door worth protecting."
wait 4500
return 

:Noname_77933
$myronSupplierCallDone = 1
wait 2000
print_string_now "PHONE CALL~n~Supplier" {time} 3000
wait 2500
print_help_formatted "Supplier: CJ. Uncle says you found the Jefferson line."
wait 4500
print_help_formatted "Supplier: Myron does not move street handfuls. He moves weight."
wait 4500
print_help_formatted "Supplier: I will keep listening. If something new comes through, you hear it first."
wait 5000
print_help_formatted "Supplier: Until then, keep the route clean and the phones short."
wait 4500
print_string_now "NETWORK UPDATED~n~Supplier is watching the route" {time} 6000
return 

:Noname_78339
if 
  $smuggleRoute <> 9
goto_if_false @Noname_78385
$smuggleRoute = 9
$smuggleLoad = 0
$smuggleStage = 0
$smuggleCargoType = 0

:Noname_78385
print_formatted_now "MYRON BULK LINE~n~1 5 XTC $600~n~2 5 LSD $750~n~3 20g opium $1200~n~4 20g heroin $2400~n~5 10g cocaine $3000~n~Queued:%d/5~n~N close" {time} 7000 {args} $smuggleLoad 
wait 250

:Noname_78533
wait 0
if 
  is_key_just_pressed KeyCode.Num1
goto_if_false @Noname_78561
gosub @Noname_78681
return 

:Noname_78561
if 
  is_key_just_pressed KeyCode.Num2
goto_if_false @Noname_78585
gosub @Noname_78772
return 

:Noname_78585
if 
  is_key_just_pressed KeyCode.Num3
goto_if_false @Noname_78609
gosub @Noname_78858
return 

:Noname_78609
if 
  is_key_just_pressed KeyCode.Num4
goto_if_false @Noname_78633
gosub @Noname_78943
return 

:Noname_78633
if 
  is_key_just_pressed KeyCode.Num5
goto_if_false @Noname_78657
gosub @Noname_79029
return 

:Noname_78657
if 
  is_key_just_pressed KeyCode.N
goto_if_false @Noname_78674
return 

:Noname_78674
goto @Noname_78533

:Noname_78681
if 
  $ecstasyPills > 4
goto_if_false @Noname_78735
$ecstasyPills -= 5
$smuggleStage += 600
$smuggleCargoType += 6
gosub @Noname_79177
goto @Noname_78770

:Noname_78735
print_string_now "MYRON~n~Need 5 ecstasy pills" {time} 3000

:Noname_78770
return 

:Noname_78772
if 
  $lsdTabs > 4
goto_if_false @Noname_78826
$lsdTabs -= 5
$smuggleStage += 750
$smuggleCargoType += 6
gosub @Noname_79177
goto @Noname_78856

:Noname_78826
print_string_now "MYRON~n~Need 5 LSD tabs" {time} 3000

:Noname_78856
return 

:Noname_78858
if 
  $opiumGrams > 19
goto_if_false @Noname_78912
$opiumGrams -= 20
$smuggleStage += 1200
$smuggleCargoType += 8
gosub @Noname_79177
goto @Noname_78941

:Noname_78912
print_string_now "MYRON~n~Need 20g opium" {time} 3000

:Noname_78941
return 

:Noname_78943
if 
  $heroinGrams > 19
goto_if_false @Noname_78997
$heroinGrams -= 20
$smuggleStage += 2400
$smuggleCargoType += 12
gosub @Noname_79177
goto @Noname_79027

:Noname_78997
print_string_now "MYRON~n~Need 20g heroin" {time} 3000

:Noname_79027
return 

:Noname_79029
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_79139
if 
  $cocaineGrams > 9
goto_if_false @Noname_79101
$cocaineGrams -= 10
$smuggleStage += 3000
$smuggleCargoType += 14
gosub @Noname_79177
goto @Noname_79132

:Noname_79101
print_string_now "MYRON~n~Need 10g cocaine" {time} 3000

:Noname_79132
goto @Noname_79175

:Noname_79139
print_string_now "MYRON~n~Cocaine route unknown" {time} 3000

:Noname_79175
return 

:Noname_79177
$smuggleLoad += 1
if 
  $smuggleLoad > 4
goto_if_false @Noname_79483
print_string_now "CALLING MYRON" {time} 3000
wait 2500
print_help_formatted "Myron: Good. That is enough weight for one pickup."
wait 4500
print_help_formatted "Myron: Meet my courier at the motel parking lot. Load it clean."
wait 5000
gosub @Noname_79520
if 
  $myronBlip <> -1
goto_if_false @Noname_79397
remove_blip $myronBlip
$myronBlip = -1

:Noname_79397
if 
  $myronMarker <> -1
goto_if_false @Noname_79427
remove_sphere $myronMarker
$myronMarker = -1

:Noname_79427
print_string_now "MYRON~n~Courier waiting at Jefferson Motel" {time} 5000
goto @Noname_79518

:Noname_79483
print_formatted_now "MYRON~n~Deal queued %d/5" {time} 4000 {args} $smuggleLoad 

:Noname_79518
return 

:Noname_79520
request_model #PREMIER
request_model #HMYDRUG

:Noname_79529
  not has_model_loaded #PREMIER
goto_if_false @Noname_79552
wait 0
goto @Noname_79529

:Noname_79552
  not has_model_loaded #HMYDRUG
goto_if_false @Noname_79574
wait 0
goto @Noname_79552

:Noname_79574
$smuggleTruck = create_car #PREMIER {x} 2229.166 {y} -1163.1106 {z} 25.7794
set_car_heading $smuggleTruck {heading} 89.0
$mexicanContact = create_char PedType.CivMale {modelId} #HMYDRUG {x} 2229.166 {y} -1163.1106 {z} 25.7794
warp_char_into_car $mexicanContact {vehicle} $smuggleTruck
lock_car_doors $smuggleTruck {lockStatus} CarLock.Locked
mark_model_as_no_longer_needed #PREMIER
mark_model_as_no_longer_needed #HMYDRUG
if 
  $smuggleMarker <> -1
goto_if_false @Noname_79685
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_79685
$smuggleMarker = add_sphere 2226.3999 {y} -1163.1 {z} 25.7794 {radius} 2.0
$smuggleActive = 1
$smuggleRoute = 9
$smugglePrompt = 0
return 

:Noname_79733
request_animation "BOMBER"
wait 500
task_play_anim_non_interruptable $scplayer {animationName} "BOM_Plant" {animationFile} "BOMBER" {blendSpeed} 4.0 {loop} False {lockX} True {lockY} True {keepLastFrame} False {time} 5000
wait 5000
remove_animation "BOMBER"
add_score $player1 {money} $smuggleStage
add_int_var_to_int_var $drugHeat += $smuggleCargoType
if 
  $smuggleMarker <> -1
goto_if_false @Noname_79849
remove_sphere $smuggleMarker
$smuggleMarker = -1

:Noname_79849
delete_char $mexicanContact
delete_car $smuggleTruck
print_formatted_now "MYRON PICKUP COMPLETE~n~Money:%d Heat:%d" {time} 6000 {args} $smuggleStage $smuggleCargoType 
wait 6500
print_string_now "TO BE CONTINUED~n~Drug Empire Reloaded v1.1.0" {time} 7000
$smuggleActive = 0
$smuggleRoute = 0
$smuggleLoad = 0
$smuggleStage = 0
$smuggleCargoType = 0
$smugglePrompt = 0
return 

:Noname_80014
if 
  22@ == 1
goto_if_false @Noname_80619
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_80186
print_formatted_now "BLACK MARKET~n~PRODUCTS 1/4~n~Weed:%dg AK:%dg XTC:%d~n~Opium:%dg Heroin:%dg Coke:%dg~n~B NEXT | N CLOSE" {time} 1000 {args} 9@ $akWeedGrams $ecstasyPills $opiumGrams $heroinGrams $cocaineGrams 
goto @Noname_80612

:Noname_80186
if 
  $chemistUnlocked == 1
goto_if_false @Noname_80328
print_formatted_now "BLACK MARKET~n~PRODUCTS 1/4~n~Weed:%dg AK:%dg XTC:%d~n~Opium:%dg Heroin:%dg~n~B NEXT | N CLOSE" {time} 1000 {args} 9@ $akWeedGrams $ecstasyPills $opiumGrams $heroinGrams 
goto @Noname_80612

:Noname_80328
if 
  $ecstasyDealerDeals > 0
goto_if_false @Noname_80441
print_formatted_now "BLACK MARKET~n~PRODUCTS 1/4~n~Weed:%dg AK:%dg XTC:%d~n~B NEXT | N CLOSE" {time} 1000 {args} 9@ $akWeedGrams $ecstasyPills 
goto @Noname_80612

:Noname_80441
if 
  $mission2Complete == 1
goto_if_false @Noname_80544
print_formatted_now "BLACK MARKET~n~PRODUCTS 1/4~n~Weed:%dg AK:%dg~n~B NEXT | N CLOSE" {time} 1000 {args} 9@ $akWeedGrams 
goto @Noname_80612

:Noname_80544
print_formatted_now "BLACK MARKET~n~PRODUCTS 1/4~n~Weed:%dg~n~B NEXT | N CLOSE" {time} 1000 {args} 9@ 

:Noname_80612
goto @Noname_82462

:Noname_80619
if 
  22@ == 2
goto_if_false @Noname_81213
if 
  $cocaineBreakthroughDone == 1
goto_if_false @Noname_80792
print_formatted_now "BLACK MARKET~n~SEEDS 2/4~n~Cannabis:%d AK:%d Poppy:%d~n~Mystery:%d Coca:%d Leaves:%dg~n~B NEXT | N CLOSE" {time} 1000 {args} 8@ $akSeedPacks $poppySeeds $mysterySeeds $cocaSeeds $cocaLeaves 
goto @Noname_81206

:Noname_80792
if 
  $empirePhaseUnlocked == 1
goto_if_false @Noname_80922
print_formatted_now "BLACK MARKET~n~SEEDS 2/4~n~Cannabis:%d AK:%d Poppy:%d~n~Mystery:%d~n~B NEXT | N CLOSE" {time} 1000 {args} 8@ $akSeedPacks $poppySeeds $mysterySeeds 
goto @Noname_81206

:Noname_80922
if 
  $mission7Started > 0
goto_if_false @Noname_81036
print_formatted_now "BLACK MARKET~n~SEEDS 2/4~n~Cannabis:%d AK:%d Poppy:%d~n~B NEXT | N CLOSE" {time} 1000 {args} 8@ $akSeedPacks $poppySeeds 
goto @Noname_81206

:Noname_81036
if 
  $mission2Complete == 1
goto_if_false @Noname_81138
print_formatted_now "BLACK MARKET~n~SEEDS 2/4~n~Cannabis:%d AK:%d~n~B NEXT | N CLOSE" {time} 1000 {args} 8@ $akSeedPacks 
goto @Noname_81206

:Noname_81138
print_formatted_now "BLACK MARKET~n~SEEDS 2/4~n~Cannabis:%d~n~B NEXT | N CLOSE" {time} 1000 {args} 8@ 

:Noname_81206
goto @Noname_82462

:Noname_81213
if 
  22@ == 3
goto_if_false @Noname_81601
if 
  $nightlifeSlingingUnlocked == 1
goto_if_false @Noname_81388
print_formatted_now "BLACK MARKET~n~STATUS 3/4~n~Heat:%d~n~Beach rep:%d Night rep:%d~n~Deals:%d Dealer trust:%d~n~B NEXT | N CLOSE" {time} 1000 {args} $drugHeat $slingingRepBeach $nightlifeRep $slingDeals $ecstasyDealerStage 
goto @Noname_81594

:Noname_81388
if 
  $slingingUnlocked == 1
goto_if_false @Noname_81529
print_formatted_now "BLACK MARKET~n~STATUS 3/4~n~Heat:%d~n~Beach rep:%d~n~Deals:%d Dealer trust:%d~n~B NEXT | N CLOSE" {time} 1000 {args} $drugHeat $slingingRepBeach $slingDeals $ecstasyDealerStage 
goto @Noname_81594

:Noname_81529
print_formatted_now "BLACK MARKET~n~STATUS 3/4~n~Heat:%d~n~B NEXT | N CLOSE" {time} 1000 {args} $drugHeat 

:Noname_81594
goto @Noname_82462

:Noname_81601
if 
  $route1TrustedBonus == 1
goto_if_false @Noname_81729
print_formatted_now "BLACK MARKET~n~ROUTES 4/4~n~R1 Coke:Yes Upg:Yes~n~Trusted route bonus active~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_81729
if 
  $route1UpgradeBought == 1
goto_if_false @Noname_81851
print_formatted_now "BLACK MARKET~n~ROUTES 4/4~n~R1 Coke:Yes Upg:Yes~n~Trusted bonus locked~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_81851
if 
  $route1CocaineDone == 1
goto_if_false @Noname_81974
print_formatted_now "BLACK MARKET~n~ROUTES 4/4~n~R1 Coke:Yes Upg:No~n~Buy upgrade at Hilltop~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_81974
if 
  $mayaUnlocked == 1
goto_if_false @Noname_82098
print_formatted_now "BLACK MARKET~n~CONTACTS 4/4~n~Buyer Isaac Morgan~n~Tyrell Maya Nightlife~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_82098
if 
  $chemistUnlocked == 1
goto_if_false @Noname_82207
print_formatted_now "BLACK MARKET~n~CONTACTS 4/4~n~Buyer Isaac Morgan~n~Tyrell~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_82207
if 
  $ecstasyDealerDeals > 0
goto_if_false @Noname_82307
print_formatted_now "BLACK MARKET~n~CONTACTS 4/4~n~Buyer Isaac Dealer~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_82307
if 
  $isaacDiscovered == 1
goto_if_false @Noname_82400
print_formatted_now "BLACK MARKET~n~CONTACTS 4/4~n~Buyer Isaac~n~B NEXT | N CLOSE" {time} 1000
goto @Noname_82462

:Noname_82400
print_formatted_now "BLACK MARKET~n~CONTACTS 4/4~n~Buyer~n~B NEXT | N CLOSE" {time} 1000

:Noname_82462
return 
